R

Ram Sharma • 193.86K Points
Coach

Q. Which method deletes a file in Java?

  • (A) file.delete()
  • (B) file.remove()
  • (C) file.garbage()
  • (D) file.dump()
  • Correct Answer - Option(A)
  • Views: 208
  • Filed under category JAVA

Explanation by: Team MCQ Buddy
The file.delete() method is used to delete a file in Java.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics