Home »
MCQs »
Java MCQs
Which is the correct absolute path of a file in Java?
39. Which is the correct absolute path of a file in Java?
- C:\Program Files\Java\jdk1.8.0_131\bin\file_name.txt
- C:\Program Files\Java\file_name.txt
- C:\Program Files\Java\jdk1.8.0_131\file_name.txt
- C:\Program Files\Java\jdk1.8.0_131\bin\File Handling\file_name.txt
Answer: A) C:\Program Files\Java\jdk1.8.0_131\bin\file_name.txt
Explanation:
The correct absolute path of a file in Java is:
C:\Program Files\Java\jdk1.8.0_131\bin\file_name.txt