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.
πŸ’¬ Discuss
βœ… Correct Answer: (C) A new file called filename is created in the current working directory.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
298
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate