Oracle
1Z0-805 · Question #72
1Z0-805 Question #72: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-805 to reveal the answer and full explanation for question #72. The question stem and answer options stay visible for context.
Question
Given the code fragment: public class App { public static void main (String [] args) { path path = paths.get("C\educations\institute\student\report.txt"); system.out.printIn("getName(0): %s", path.getName(0)); system.out.prinIn("subpath(0, 2): %s" path.subpath(0, 2)); } } What is the result?
Options
- AgetName (0): C:\
- BgetName (0): C:\
- CgetName(0): education
- DgetName(0): education
- EgetName(0): report.txt
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.