Knowee
Questions
Features
Study Tools

correct answerWhich of these classes can return more than one character to be returned to input stream?OptionsBufferedReaderPushbachReaderBufferedwriterCharArrayReader

Question

correct answerWhich of these classes can return more than one character to be returned to input stream?OptionsBufferedReaderPushbachReaderBufferedwriterCharArrayReader

🧐 Not the exact question you are looking for?Go ask a question

Solution

The correct answer is PushbackReader.

Here's why:

  1. BufferedReader: This class reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. However, it does not have the ability to return more than one character to the input stream.

  2. PushbackReader: This class adds functionality to another instance of the Reader class. It allows one to 'unread' characters, meaning it can return more than one character to the input stream. This is the correct answer.

  3. BufferedWriter: This class writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings. It does not have the ability to return characters to the input stream.

  4. CharArrayReader: This class is used to implement a character buffer that can be used as a character-input stream. It does not have the ability to return characters to the input stream.

This problem has been solved

Similar Questions

rrect answerWhich of these class can be used to implement the input stream that uses a character array as the source?OptionsBufferedReaderCharArrayReaderFileReaderFileArrayReader

Select the correct answerWhich of these class is not related to input and output stream in terms of functioning?OptionsInputStreamWriterFileReader

Which of the following classes is used to read the stream of the character?Options: Pick one correct answer from belowScannerBufferedReaderInputStreamReaderNone of the above

Which of these stream contains the classes which can work on character stream?OptionsOutputStreamInputStreamCharacter StreamAll of the mentioned

the correct answerWhich of these class is used to read characters in a file?OptionsFileReaderFileInputStreamFileWriterInputStreamReader

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.