DEVFYI - Developer Resource - FYI

What is the difference between the File and RandomAccessFile classes?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

110. What is the difference between the File and RandomAccessFile classes?

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.

(Continued on next question...)

Other Interview Questions