Oracle
1Z0-819 · Question #80
1Z0-819 Question #80: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-819 to reveal the answer and full explanation for question #80. The question stem and answer options stay visible for context.
Question
Given:
String originalPath = "data\projects\a-project\..\..\another-project";
Path path = Paths.get(originalPath);
System.out.print(path.normalize());
What is the result?
Options
- Adata\another-project
- Bdata\projects\a-project\another-project
- Cdata\projects\a-project....\another-project
- Ddata\projects\a-project..\another-project
Unlock 1Z0-819 to see the answer
You've previewed enough free 1Z0-819 questions. Unlock 1Z0-819 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.