M

Mr. Dubey • 52.49K Points
Coach

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.
  • Correct Answer - Option(C)
  • Views: 105
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics