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. 2 bytes.
Two bytes of Unicode for 'A' is written
You might also like to view...
?It is impossible to later convert footnotes to endnotes once footnotes are chosen.
A. Yes B. No
Javadoc comments begin with ____ and end with*/.
A. // B. /** C. */ D. **/
What file holds the preferences and settings of the currently signed-in user?
A. ntprofile.dat B. ntuser.dat C. profile.ini D. userconfig.ini
The only restriction on strcpy() is the array size.
Answer the following statement true (T) or false (F)