Q.

How can you change the current working directory using an instance of the File class called FileName?

A. FileName.chdir("DirName").
B. FileName.cd("DirName").
C. FileName.cwd("DirName").
D. The File class does not support directly changing the current directory.
Answer» D. The File class does not support directly changing the current directory.
1.8k
0
Do you find this helpful?
19

View all MCQs in

Java Programming

Discussion

No comments yet