1.

Which of these exception is thrown by close() and read() methods?(a) IOException(b) FileException(c) FileNotFoundException(d) FileInputOutputExceptionThis question was posed to me in class test.I'm obligated to ask this question of Reading & Writing Files in portion I/O & Applets of Java

Answer»

Correct choice is (a) IOEXCEPTION

For explanation: Both CLOSE() and READ() method throw IOException.



Discussion

No Comment Found

Related InterviewSolutions