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 fileI got this question in class test.I need to ask this question from IO Class in portion Inbuilt Classes of Object Oriented Programming

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