Multiple Choice
Which expression creates an empty file named filename.txt?
A) Files.createFile("filename.txt")
B) Files.createFile(Paths.get("filename.txt") )
C) Files.createFile(new File("filename.txt") )
D) Files.create(Paths.get("filename.txt") )
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q29: Which class has a write method that
Q30: Which of the following classes are used
Q31: Caesar cipher uses a shift of each
Q32: Which class is used for input of
Q33: The values of the byte type range
Q35: Given a RandomAccessFile that stores a set
Q36: Which statement is NOT correct about the
Q37: In Java, the byte type is a(n)
Q38: Fill in the blank in the following
Q39: Which of the following classes are related