Question: After the following program is finished, how many bytes are written to the file t.dat? import java.io.*; public class Test ( public static void main(String[]
After the following program is finished, how many bytes are written to the file t.dat? import java.io.*; public class Test ( public static void main(String[] args) throws IOException ( DataOutputStream output = new DataOutputStream( new FileOutputStream("t.dat")); output.writeChars ("ABCD"); output.close(); } O2 bytes O 12 bytes O4 bytes O 8 bytes O 16 bytes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
