Loading…
Loading…
Ten exam-style questions on java.io stream fundamentals: byte versus character streams, charsets, input versus output, low-level versus high-level streams, legal wrapping, the abstract base classes, PrintStream and PrintWriter, and read() returning -1, with explanations.
Practice questions for the article Java I/O Streams: Byte and Character, Input and Output, Low-Level and High-Level.
Every compile and output claim was checked against a real JDK. Aim for at least 8 out of 10.
Quiz path: step 100. Take the quizzes in this order, after reading each article.
Previous quiz: Copying, Moving, Deleting and Comparing Files (OCP 21)
Next quiz: Reading and Writing Files (OCP 21)
10 questions · pass at 68%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.