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
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.