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"); 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
Get step-by-step solutions from verified subject matter experts
