JavaDeploy
SiteMap
Readers Writers
Java Streams
Java Programming
Java Language
Java 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
Skipping Bytes Data
Closing Stream Data
Input Stream Conclusion
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
Intro Filtering Streams
Filter Streams
Different FilterStreams
Chaining Streams
Optimizing Performance using BufferedStreams
Marking, Resetting Java Streams
Pushback Input Stream
Portable Data Format
Streaming Data Between Threads
Connect Streams InSequence
Array Input Streams
Treating Arrays AsStreams
DumpFile Course Project
Filter InputStream RawBytes Conclusion
Java Input Streams - Quiz
Each question is worth one point. Select the best answer for each question.
1.
Which one of the following statements about reading input streams is true?
Please select the best answer.
A.
When no bytes are available to be read, the available() method returns -1
B.
The InputStream class can never be instantiated directly
C.
All streams must be explicitly closed with the close() method
D.
read() returns a stream of bytes
2.
The maximum number of bytes that can be skipped past in one method call is:
Please select the best answer.
A.
32,767
B.
2,147,483,647
C.
4,294,967,294
D.
9,223,372,036,854,775,807
3.
What data type does the read() method return?
Please select the best answer.
A.
byte
B.
int
C.
long
D.
short
4.
Which decimal number indicates end-of-stream?
Please select the best answer.
A.
0
B.
-1
C.
4
D.
28
Your score is 0.0
Submit
Quiz Explanation