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

Computer Science & Information Technology

You might also like to view...

?It is impossible to later convert footnotes to endnotes once footnotes are chosen.

A. Yes B. No

Computer Science & Information Technology

Javadoc comments begin with ____ and end with*/.

A. // B. /** C. */ D. **/

Computer Science & Information Technology

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

Computer Science & Information Technology

The only restriction on strcpy() is the array size.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology