Loading…
Loading…
Ten exam-style questions on advanced Java I/O: mark, reset and skip, isHidden and other access checks, BasicFileAttributes and views, Files.walk depth and symbolic links, Files.find and DirectoryStream, with explanations.
Practice questions for the article Java Files Advanced: Attributes, walk, find, lines and mark/reset.
Every code answer was checked by running the code against real temporary files on JDK 21. Aim for at least 8 out of 10.
Quiz path: step 104. Take the quizzes in this order, after reading each article.
Previous quiz: Console and User Interaction (OCP 21)
Next quiz: Chapter 14 Review: I/O (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.