Question: What does the following code do? FileInputStream fis = new FileInputStream(test.dat); O It creates a FilelnputStream for test.dat if test.dat exists. It creates a new

 What does the following code do? FileInputStream fis = new FileInputStream("test.dat");

What does the following code do? FileInputStream fis = new FileInputStream("test.dat"); O It creates a FilelnputStream for test.dat if test.dat exists. It creates a new file named test.dat if it does not exist and opens the file so you can write to it and read from it. o It creates a new file named test.dat regardless of whether it exists or not and opens the file so you can write to it. It creates a new file named test.dat if it does not exist and opens the file so you can write to it

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!