Examveda
Examveda

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: Option D


This Question Belongs to Java Program >> Input Output

Join The Discussion

Related Questions on Input Output