Java SE 8 Programmer II Practice Questions

Previous   Next

7. What is the output of the following code?
Path path = Paths.get("/home/user/docs");
System.out.println(path.subpath(1, 3));

/home/user/docs

/user/docs

user/docs

user/docs/




Your Answer =


Answer / Explanation:

CertExams Blog!  Certexams.com Facebook Page Certexams.com Twitter Page Certexams on YouTube 


Cert-Ex™ Exam Simulators, Cert-Ex™ Network Simulator, Cert-Ex™ Cheatsheets are written independently by CertExams.com and not affiliated or authorized by respective certification providers. Cert-Ex™ is a trade mark of CertExams.com or entity representing Certexams.com.Java™ is a trademark of Oracle® Corporation