Question: When a file is written using FileOutputStream ( filename . txt , true ) ; , what happens if filename.txt already exists? Group

When a file is written using FileOutputStream("filename.txt", true); , what happens if filename.txt already exists? Group of answer choices
The new file replaces it
Data is appended to the end
Data is written to filename-1.txt
The user is asked what to do

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!