Based on the code below, the statement that would move the file pointer to byte n counted from the beginning of the file is ___________________.
RandomAccessFile test = new RandomAccessFile("record.bat", "r") ;
A) test.getFilePointer(n) ;
B) test.length() - n;
C) test.seek(n) ;
D) test.getFilePointer() ;
Correct Answer:
Verified
Q48: Assume we have a RandomAccessFile object, file,
Q49: Assume we have a RandomAccessFile object, file,
Q50: A file pointer is a position in
Q51: Assume we have a RandomAccessFile object, file,
Q52: Which method in the RandomAccessFile class provides
Q54: The readInt and writeInt methods of the
Q55: When storing numbers in a file with
Q56: The readDouble and writeDouble methods of the
Q57: Which statement about object streams is NOT
Q58: What do we call the measure in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents