Multiple Choice
The ____ method returns the last Path element in a list of pathnames.
A) toString()
B) getNameCount()
C) getFileName()
D) getName(int)
Correct Answer:

Verified
Correct Answer:
Verified
Q6: import java.nio.file.*; <br>import java.io.*; <br>import static java.nio.file.StandardOpenOption.*;
Q7: How can you categorize files by the
Q8: In random access files, records can be
Q9: FileSystems is a class that contains _
Q10: When you perform input and output operations
Q12: import java.util.Scanner; <br>import java.nio.file.*; <br>public class PathDemo2
Q13: Match each term with the correct statement
Q14: import java.nio.file.*; <br>import static java.nio.file.AccessMode.*; <br>import java.io.IOException;
Q15: When you use the BufferedReader class, you
Q16: Placing a file in the _ directory