Q20
What is the primary purpose of the `File` class in Java?
A.
It is used to perform mathematical operations
B.
It is used to write data to a file
C.
It is used to read data from a file
D.
It represents a file or directory pathname
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board