The class ________ allows an application to read bytes from a file, modifying them, and then writing them back to the file.

  • BufferedWriter
  • FileInputStream
  • FileReader
  • RandomAccessFile
The class RandomAccessFile in Java is used to perform read and write operations on a file. Unlike other file I/O classes, it allows you to modify bytes at specific positions in a file. You can move the file pointer to a desired location using this class and then read or write data from or to that position.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *