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.Which expression calculates the number of records in the file?
A) MyData.RECORD_SIZE * file.length()
B) file.length() / MyData.RECORD_SIZE
C) MyData.RECORD_SIZE + file.getFilePointer()
D) file.seek(0L) / MyData.RECORD_SIZE
Correct Answer:

Verified
Correct Answer:
Verified
Q13: What is the lowest value for a
Q14: Which expression determines whether there is a
Q15: The two IO classes used for serialization
Q16: Streams access sequences of _.<br>A)bytes<br>B)files<br>C)characters<br>D)strings
Q17: Which of these classes access sequences of
Q19: Based on the code below, the statement
Q20: If you access and store information in
Q21: In _ file access, the file is
Q22: Every object is assigned a serial number
Q23: What type is returned from a call