What happens if FileWriter is constructed without append = true?

Last Updated :
Discuss
Comments

What happens if FileWriter is constructed without append = true?

Data is added to the end of the file

Existing data remains unchanged

File is deleted

File content is overwritten

Share your thoughts in the comments