How can you delete a file using Java?
You can just call `delete()` on a file object, and it will automatically remove the file.
Thatâ€™s incorrect. The `delete()` method doesnâ€™t automatically handle any errors, and it wonâ€™t throw exceptions if the file doesnâ€™t exist.
Can you explain what might happen if `delete()` fails to delete a file?