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.writeChar('A');
output.close();
}
}```
a. 2 bytes.
b. 4 bytes.
c. 8 bytes.
d. none of the above.
a Two bytes of Unicode for 'A' is written
You might also like to view...
The ________ tags define the beginning and end of a table cell
Fill in the blank(s) with correct word
Which statement is false?
a) The result of shifting a value is undefined if the right operand is negative. b) The result of shifting a value is undefined if the right operand has more bits than the number of bits in which the left operand is stored. c) Left shifting is machine dependent. d) Right shifting is machine dependent.