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.writeShort(1234);
output.writeShort(5678);
output.close();
}
}
```
a. 2 bytes.
b. 4 bytes.
c. 8 bytes.
d. 16 bytes.

b. 4 bytes.

Computer Science & Information Technology

You might also like to view...

Data is the main ingredient for any BI, data science, and business analytics initiative.

Indicate whether the statement is true or false.

Computer Science & Information Technology

Disadvantages of e-commerce

What will be an ideal response?

Computer Science & Information Technology