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();
}
}```
a. 2 bytes.
b. 4 bytes.
c. 8 bytes.
d. 12 bytes.
e. 16 bytes.
c Two bytes of Unicode for each character is written to output.
You might also like to view...
You can apply a ________ to the entire PivotTable report
A) PivotChart Style B) PivotTable Style C) PivotStyle D) PivotReport Style
Answer the following statements true (T) or false (F)
1. Because the subclass is more specialized than the superclass, it is sometimes necessary for the subclass to replace inadequate superclass methods with more suitable ones. 2. When a subclass overrides a superclass method, only the subclass's version of the method can be called with a subclass object. 3. Inheritance involves a subclass, which is the general class, and a superclass, which is the specialized class. 4. It is not possible for a superclass to call a subclass's method. 5. When a subclass extends a superclass, the public members of the superclass become public members of the subclass.