Return to site

JAVA CERTIFICATION QUESTION: Working with the Java Path class and the file system

· java

The objective of this quiz is to 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.

 

 

 

 

 

 

·ꓭ sᴉ ɹǝʍsuɐ ʇɔǝɹɹoɔ ǝɥꓕ

All Posts
×

Almost done…

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

OK