How does `FileOutputStream` handle exceptions during file operations?
It silently ignores any errors and continues writing to the file.
Thatâ€™s incorrect. `FileOutputStream` doesnâ€™t ignore errors; it throws an exception if something goes wrong.
How can you make sure your program doesnâ€™t crash when an exception occurs during file writing?