What happens if the `FileOutputStream` tries to write to a file that is already open by another process?
The `FileOutputStream` will throw an `IOException` indicating that the file is locked by another process.
Nice! Youâ€™ve got the right understanding of file locking.
Can you explain how Java handles file access conflicts across multiple processes?