Java Input/Output  «Prev  Next»

 

Java Input, Output - Quiz


1. If you wanted to support internationalization in your Java program, which one of the following I/O classes would you need to use?
Please select the best answer.
  A. InputStream
  B. FileReader
  C. FileInputStream

122
2. Which one of the following stream classes is a data source?
Please select the best answer.
  A. FilterReader
  B. BufferedReader
  C. StringReader


3. What type of object is the standard System.in object?
Please select the best answer.
  A. InputStream
  B. Reader
  C. BufferedInputStream

4. In the BufferedReader class, what does the readLine() method return when it reaches the end of the stream?
Please select the best answer.
  A. 0
  B. -1
  C. null


Your score is 0.0