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. DataOutputStream outfile = new DataOutputStream(new FileOutputStream("out.dat"));
You might also like to view...
A ________ is a macro that is triggered by events
A) data macro B) macro group (-) C) autoexec D) trusted action
JTextAreas can be used to display multiple lines of text.
Answer the following statement true (T) or false (F)
By definition, a dotted stroke has only one size and style of dot.
Answer the following statement true (T) or false (F)
If you want to see a line while you create new anchor points, you can tap or click the Geometry options button on the options bar.
Answer the following statement true (T) or false (F)