Loading…
Loading…
Ten exam-style questions on referring to files: absolute and relative paths, path symbols, creating File and Path objects, Path.of versus Paths.get, URIs, converting between File and Path, and matching File methods to Path and Files methods, with explanations.
Practice questions for the article Java File and Path: Creating Paths and Converting Between Them.
Questions use Unix-style paths, as the exam does. Every compile and output claim was checked against a real JDK. Aim for at least 8 out of 10.
Quiz path: step 97. Take the quizzes in this order, after reading each article.
Previous quiz: Chapter 13 Review: Concurrency (OCP 21)
Next quiz: Path Methods: normalize, resolve and relativize (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.