Which of the following class in Java is responsible for handling files in Java?
2024
Which of the following class in Java is responsible for handling files in Java?
Answer: C. File — In Java, the File class represents file and directory pathnames and is used for basic file handling.
- A.
FileStream
- B.
FileHandler
- C.
File
- D.
FileManager
- E.
Question not attempted
Attempted by 363 students.
Show answer & explanation
Correct answer: C
In Java, the File class represents file and directory pathnames and is used for basic file handling.
Loading lesson…