Multiple Choice
Assume we have a RandomAccessFile object, file, that stores a set of records of class MyData.The size of each record is MyData.RECORD_SIZE.Assume MyData has read and write methods both of which take a RandomAccessFile as an argument.Method write writes the object at the current location.Method read reads the record from current location of the file into the object.If we are currently at the beginning of the 1st record, which code correctly modifies the 2nd record by changing its color to Color.red through the setColor method?
A)
B)
C)
D)
Correct Answer:

Verified
Correct Answer:
Verified
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
Q24: How many bytes does the read method
Q26: The readDouble and writeDouble methods of the
Q27: Which code moves the file pointer to
Q28: When storing numbers in a file with
Q29: Which class has a write method that
Q30: Which of the following classes are used