1.

Which of these classes is used for input and output operation when working with bytes?(a) InputStream(b) Reader(c) Writer(d) All of the mentionedThis question was addressed to me during a job interview.Asked question is from Java.io Byte Streams topic in chapter Exploring java.lang & java.io of Java

Answer»

The CORRECT choice is (a) InputStream

The BEST I can explain: InputStream & OutputStream are designed for byte STREAM. Reader and writer are designed for CHARACTER stream.



Discussion

No Comment Found

Related InterviewSolutions