O

Java SE 8 Programmer II

196 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

Given the code fragment:
Path p1 = Paths.get(“/Pics/MyPic.jpeg”);
System.out.println (p1.getNameCount() +
“:” + p1.getName(1) +
“:” + p1.getFileName());
Assume that the Pics directory does NOT exist.
What is the result?

Choose the correct option from the given list.
01 / 196

0 Discussions

Trending Exams