Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Dive into the depths of Java with our quiz based on "Thinking in Java, Fourth Edition" by Bruce Eckel. Test your knowledge, solidify concepts, and prepare for certification with challenging questions and insightful feedback.

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the purpose of InputStreamReader and OutputStreamWriter?

  1. To convert between byte streams and character streams

  2. To provide buffering for I/O operations

  3. To facilitate formatted output to files

  4. To enable serialization of objects

The correct answer is: To convert between byte streams and character streams

The purpose of InputStreamReader and OutputStreamWriter is to convert between byte streams and character streams. Option B is incorrect because buffering is performed by BufferedReader and BufferedWriter. Option C is incorrect because formatting output to files is done by PrintWriter. Option D is incorrect because serialization of objects is done by ObjectOutputStream and ObjectInputStream.