1.

FileInputStream _________________________(a) Gets the input stream from any device file(b) Gets the input stream from any open socket(c) Gets the input stream from any cache(d) Gets the input stream from any open file onlyThis question was addressed to me in unit test.I'm obligated to ask this question of IO Class topic in chapter Inbuilt Classes of Object Oriented Programming

Answer»

The correct answer is (d) Gets the input STREAM from any open file only

Explanation: The most specific answer is that the FileInputStream can only be used for the opened files. The class can work only for the file TYPE. No SOCKET or another source are allowed to be accessed.



Discussion

No Comment Found

Related InterviewSolutions