McqMate
| 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. | |
View all MCQs in
Java ProgrammingNo comments yet