Title: Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat? Post by: snowicefox17 on May 5, 2020 Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat?
▸ DataOutputStream outfile = new DataOutputStream(new FileOutputStream("out.dat")); ▸ DataOutputStream outfile = new DataOutputStream("out.dat"); ▸ DataOutputStream outfile = new DataOutputStream(FileOutputStream("out.dat")); ▸ DataOutputStream outfile = new DataOutputStream(new File("out.dat")); Title: Which of the following statements is correct to create a DataOutputStream to write to a file named out.dat? Post by: anthead on May 5, 2020 Content hidden
|