What is the difference between `File` and `Path` in Java?
The `File` class is part of the legacy I/O API, while `Path` is part of the newer NIO package, offering more flexibility and functionality for file operations.
Well done! You've captured the key difference between `File` and `Path`.
Can you explain how you would convert between `File` and `Path` objects?