What is the difference between the File and RandomAccessFile classes?

Q

What is the difference between the File and RandomAccessFile classes?

✍: Guest

A

The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.

2012-08-06, 2263👍, 0💬