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?
Correct answer is B.
If it does not exist, an exception will be thrown when attempting to perform certain operations on the p1 object, such as reading or writing to the file.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Huim
Highly Voted 3 years, 2 months agoSvetleto13
3 years, 2 months agoSvetleto13
Highly Voted 3 years, 3 months agoSvetleto13
3 years, 2 months agoasdfjhfgjuaDCV
Most Recent 4 months, 4 weeks agosteefaand
5 months, 4 weeks agoduydn
10 months, 2 weeks agor1muka5
1 year, 5 months ago