Oracle Java SE 8 Programmer II 1z0-809 Question # 41 Topic 5 Discussion

Oracle Java SE 8 Programmer II 1z0-809 Question # 41 Topic 5 Discussion

1z0-809 Exam Topic 5 Question 41 Discussion:
Question #: 41
Topic #: 5

Given the code fragment:

Path path1 = Paths.get(“/app/./sys/”);

Path res1 = path1.resolve(“log”);

Path path2 = Paths.get(“/server/exe/”);

Path res1 = path2.resolve(“/readme/”);

System.out.println(res1);

System.out.println(res2);

What is the result?


A.

/app/sys/log/readme/server/exe


B.

/app/log/sys/server/exe/readme


C.

/app/./sys/log/readme


D.

/app/./sys/log/server/exe/readme


Get Premium 1z0-809 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.