1.

RandomAccessFile can be used to _______________________(a) Read from a random access file(b) Write to a random access file(c) Read and write to a random access file(d) Restricts read and write to a random access file

Answer» Right option is (c) Read and write to a random access file

To explain I would say: The RandomAccessFile class instance can be created to handle input and output operations to a random access file. It first checks the permissions on the file and then any required operation can be done on a random access file. Comparatively faster than other files access.


Discussion

No Comment Found

Related InterviewSolutions