Forums Java Help What is the difference between the File and RandomAccessFile classes

This topic contains 1 reply, has 2 voices, and was last updated by  Aakanksha 7 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15279

    ahprofessional
    Participant

    What is the difference between the File and RandomAccessFile classes?

    #15282

    Aakanksha
    Participant

    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.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.