Multiple choice

To delete a file, we can use an instance of class file.

  1. Yes

  2. No

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The java.io.File class provides a delete() method that can be used to delete the file or directory denoted by the abstract pathname.