The method ________ of the RandomAccessFile class sets the file-pointer offset.

  • moveFilePointer()
  • seek()
  • setFilePointer()
  • setPointerOffset()
The method seek() of the RandomAccessFile class in Java is used to set the file-pointer offset to a specified location within the file. It allows you to navigate within the file and start reading or writing data from that position.
Add your answer
Loading...

Leave a comment

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