Vidyalelo
Java Programming · Q20

Input Output

Programming · Java Programming · question 20

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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board