JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Filter Streams
«Prev
Next»
Java Streams
Stream Basics
Stream Input Definition
Roller Coaster Analogy
Input Streaming Data
System in-out
Additional Sources for I/O Streams
Java Stream Classes
I/O Stream Conclusion
Data Stream Reading
Reading Data from Streams
Efficient byte array Buffer
Counting available Bytes
Closing Stream Data
Writing Data Streams
Writing Data to Stream
Java Write Method
Java System.out
Java Write Byte
Java IO Flush
Java File Streams
Using Filestream
Character Mode DumpsFile
WritingData OutputStreams Conclusion
Filtering Streams
Chaining Streams
Marking Resetting Java Streams
Marking resetting Methods
Treating Arrays as Streams
Streaming Data between Threads
Java Filter Streams - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
Which of the following is not a method in the
PushbackInputStream
class?
Please select the best answer.
A.
read()
B.
reset()
C.
close()
D.
toString()
E.
None of the above
2.
Besides creating a new instance of a
PushbackInputStream
, what else is the following line of code doing?
PushbackInputStream pis = new PushbackInputStream(System.in, 432);
Please select the best answer.
A.
Allows the
unread()
method to "unread" 432 bytes
B.
Allows marking and resetting for this
PushbackInputStream
C.
Assigns the value 432 to the
PushbackInputStream
C.
Compilation Fails
C.
A Runtime exception is thrown.
3.
Which of the following input stream classes always supports marking?
Please select the best answer.
A.
System.in
B.
DataInputStream
C.
FileInputStream
D.
ByteArrayInputStream
E.
None of the above
4.
Which of the following cannot be chained to a
FileInputStream
?
Please select the best answer.
A.
BufferedInputStream
B.
DataInputStream
C.
PrintStream
D.
PushbackInputStream
E.
None of the above
Your score is 0.0
Submit
Quiz Explanation