Which of the following character stream classes should be used to read characters, arrays, and lines efficiently?

  • BufferedReader
  • CharArrayReader
  • FileReader
  • InputStreamReader
The BufferedReader class is used to read characters, arrays, and lines efficiently from a character input stream. It provides buffering, which makes reading more efficient. FileReader is used to read characters from files, and InputStreamReader is used for byte-to-character conversion. CharArrayReader is used to read from character arrays.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *