Solved

Which Expression Returns a String Representing the Full Path to the File

Question 52

Multiple Choice

Which expression returns a String representing the full path to the file filename.txt?


A) Paths.get("filename.txt")
B) Paths.get("filename.txt") .toString()
C) Paths.get("filename.txt") .toAbsolutePath()
D) Paths.get("filename.txt") .toAbsolutePath() .toString()

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions