Solved

Assume We Have a RandomAccessFile Object, File, Which Stores a Set

Question 62

Multiple Choice

Assume we have a RandomAccessFile object, file, which stores a set of records of class MyData, each needing MyData.RECORD_SIZE bytes for storage.If the file pointer is currently on the 24th record, which expression represents the offset to the beginning of the 25th record?


A) MyData.RECORD_SIZE * 2
B) MyData.RECORD_SIZE + file.getFilePointer()
C) MyData.RECORD_SIZE + 1
D) file.getFilePointer()

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions