What does the following code do?
FileInputStream fis = new FileInputStream("test.dat");
a. It creates a new file named test.dat if it does not exist and opens the file so you can write to it.
b. 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.
c. 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.
d. 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 and read from it.
e. It creates a FileInputStream for test.dat if test.dat exists.
e. It creates a FileInputStream for test.dat if test.dat exists.
You might also like to view...
The primary purpose of a client computer is to deliver HTML documents and related resources (like images) in response to client computer requests
Indicate whether the statement is true or false.
For photos or other reproduced content, a ____ should appear on the page stating the source.?
A. ?quotation B. ?credit line C. ?fact note D. ?support line