1.

Which of these class can be used to implement the input stream that uses a character array as the source?(a) BufferedReader(b) FileReader(c) CharArrayReader(d) FileArrayReaderThis question was addressed to me in an interview for job.My enquiry is from Java.io Character Streams topic in portion Exploring java.lang & java.io of Java

Answer»

Correct choice is (c) CharArrayReader

Best EXPLANATION: CharArrayReader is an implementation of an INPUT stream that USES character array as a source. Here array is the input source.



Discussion

No Comment Found

Related InterviewSolutions