Return to site

JAVA CERTIFICATION QUESTION: use the Path interface to operate on files and directory paths

· java

Given this code fragment:

Assume that the file system containing the current working directory has an empty directory, tmp, in its root.

What is the result? Choose one.

A) john
B) ..
C) doe
D) Execution completes without exceptions, producing output that depends on the host operating system.
E) An exception is thrown at line n1.

 

 

 

 

 

 

 

 

 

 

The answer is B

All Posts
×

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OK