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?
- A.
FileStream
- B.
FileHandler
- C.
File
- D.
FileManager
- E.
Question not attempted
Attempted by 94 students.
Show answer & explanation
Correct answer: C
In Java, the File class represents file and directory pathnames and is used for basic file handling.