Oracle
1Z0-805 · Question #92
1Z0-805 Question #92: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #92. The question stem and answer options stay visible for context.
Question
Given: import java.io.IOException; import java.io.file.Path; import java.io.file.Paths; public class Path12 { public static void main(String s[]) throws IOException { Path path = Paths.get("\sales\quarter\..\qtrlreport.txt"); path.relativize(Paths.get("\sales\annualreport.txt")); if(path.endsWith("annualreport.txt")) { System.out.println(true); } else { System.out.println(false); } System.out.println(path); } } What is the result?
Options
- Afalse
- Bfalse
- Ctrue
- Dtrue
Unlock 1Z0-805 to see the answer
You've previewed enough free 1Z0-805 questions. Unlock 1Z0-805 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.