What is the difference between the File and RandomAccessFile classes

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

Showing Answers 1 - 1 of 1 Answers

sumeeth tewar

  • Jul 12th, 2006
 

the File class can only provide File properties. But cannot actually read or write those files.

RandomAccessFile provides methods to read and write to files.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions