What is the difference between the File and RandomAccessFile classes?

What is the difference between the File and RandomAccessFile classes?

Sunena
Views: 711 | Community Opinion: 1

Tags..  Java Interview  Core Java  Java Classes

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Eroldo Said..

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.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: