Log In Register

Units


Java.io Character Streams - Questions and Answers

 

Practice these Java.io Character Streams under Java Programming walk-in interview Questions/ examination questions with best tricks and short cuts with solution. Student (candidate) who want to crack the walk in interview, competitive exams and want to find short cuts and tricks to solve questions on Java.io Character Streams for following purpose.


– Anyone who is wishing to increase their perfect knowledge of Java.io Character Streams of Java Programming.
– Anyone who is preparing for aptitude test and increase his in depth aptitude knowledge Java Programming specifically Java.io Character Streams.
– Anyone who is preparing for interviews (competitive examinations, govt examinations and bank examinations, off-campus or on campus interviews, walk-in interview and company interviews) having questions on Java.io Character Streams under Java Programming.

– Anyone who is preparing for aptitude test or competitive exam or entrance exam.
– Anyone who is preparing for entrance examinations and other competitive examinations.
– All Experienced, Freshers and Students.

Here is list of Questions and Answers covering all key area of  Java.io Character Streams topic of Java Programming:

 

1. Which of these is a method to clear all the data present in output buffers?

Answer: Option B

Explanation:

2. Which of these stream contains the classes which can work on character stream?

Answer: Option C

Explanation:
InputStream & OutputStream classes under byte stream they are not streams. Character Stream contains all the classes which can work with Unicode.

3.  Which of these method of FileReader class is used to read characters from a file?

Answer: Option A

Explanation:

4. Which of these class can be used to implement input stream that uses a character array as the source?

Answer: Option C

Explanation:
CharArrayReader is an implementation of an input stream that uses character array as a source. Here array is the input source.

5. Which of these classes can return more than one character to be returned to input stream?

Answer: Option C

Explanation:
 PushbackReader class allows one or more characters to be returned to the input stream. This allows looking ahead in input stream and performing action accordingly.

6.  Which of these class is used to read characters in a file?

Answer: Option A

Explanation: