Q.

You execute the code below in an empty directory. What is the result? File f1 = new File ("dirname");F ile f2 = new File (f1, "filename");

A. A new directory called dirname is created in the current working directory.
B. A new directory called dirname is created in the current working directory.
C. A new file called filename is created in the current working directory.
D. No directory is created, and no file is created.
Answer» C. A new file called filename is created in the current working directory.
860
0
Do you find this helpful?
6

View all MCQs in

Java Programming

Discussion

No comments yet

Related MCQs