Loading…
Loading…
Ten exam-style questions on user interaction in Java: System.out versus System.err, reading System.in with BufferedReader, closing system streams, System.console() and null, readLine, readPassword and printf versus format, with explanations.
Practice questions for the article Java Console and User Interaction: System.in, System.out, System.err and Console.
Every code answer was checked by compiling or running it on JDK 21 without an attached terminal. Aim for at least 8 out of 10.
Quiz path: step 103. Take the quizzes in this order, after reading each article.
Previous quiz: Serialization (OCP 21)
Next quiz: Advanced Files, walk and find (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.