Filter Streams   «Prev  Next»

Connecting Java Streams - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Which of the following requires a separate stream object to provide raw data?
Please select the best answer.
  A. ByteArrayInputStream
  B. DataInputStream
  C. FileInputStream
  D. System.in

2. Which of the following cannot be chained to a FileOutputStream?
Please select the best answer.
  A. BufferedOutputStream
  B. DataOutputStream
  C. PrintStream
  D. ByteArrayOutputStream

3. If you wanted a class that could write little-endian data, you would most likely extend:
Please select the best answer.
  A. FilterOutputStream
  B. FilterInputStream
  C. DataOutputStream
  D. OutputStream


Your score is 0.0