Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?
a. DataOutputStream outfile = new DataOutputStream(new File("out.dat"));
b. DataOutputStream outfile = new DataOutputStream(new FileOutputStream("out.dat"));
c. DataOutputStream outfile = new DataOutputStream(FileOutputStream("out.dat"));
d. DataOutputStream outfile = new DataOutputStream("out.dat");
b
Computer Science & Information Technology
You might also like to view...
Functions are edited in the ________
Fill in the blank(s) with correct word
Computer Science & Information Technology
The three packets exchanged between two hosts when establishing a TCP connection in the correct order are Syn, Ack, Syn + Ack. True or False?
Indicate whether the statement is true or false
Computer Science & Information Technology