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
You might also like to view...
Visual Studio treats _______ as delimiters for Strings and does not treat them as part of a String.
a) single quotes b) double quotes c) parentheses d) None of the above
Describe how fan and chasm traps can occur in an ER model and how they can be resolved.
What will be an ideal response?
____ access controls help the organization avoid an incident.
A. Corrective B. Detective C. Deterrent D. Preventive
In regards to the use of local authentication, what statement is accurate?
a. Local authentication provides the most security. b. Local authentication is scalable for large networks. c. Local authentication is network and server failure tolerant. d. Local authentication does not allow for strong enough passwords.