aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

Which of the following methods in Java sets the file pointer to a particular location inside the file?

  1. long getFilePointer()

  2. long length()

  3. void seek(long pos)

  4. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method sets the file pointer to a particular location inside the file.

Keep practicing — related questions

  • Which of the following methods in Random Access Files return the current location of the file pointer?
  • Which statement takes the file pointer to the beginning of the file?
  • Which of the following functions is used to place the pointer at a particular position in a file?
  • Which of the following functions give the current position of the file pointer?
  • Which of the following file control functions is used to move the file pointer to the desired position with...
  • Which of the following functions accepts file pointer as a parameter and resets the position of the file po...
  • Which of the following functions in data file handling moves the file put pointer to a location specified b...
  • Which of the following methods is/are defined in the File class in Java?

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy