Return to site
JAVA CERTIFICATION QUESTION: use the Path interface to operate on files and directory paths
·
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