-->
当前位置:首页 > 题库

单选题:Below is the function header for write() in OutputStream

Luz5年前 (2021-05-10)题库1093
Below is the function header for write() in OutputStream
```Java
void write(int b)
```
. Now given code below, what would be the size and the content of the output file?
```Java
int i=0xcafebabe;
FileOutputStream out = new FileOutputStream("output");
out.write(i);
```
@[A](2)

A. 1 byte and 0xbe
B. 1 byte and 0xca
C. 4 bytes as 0xcafebabe
D. 4 bytes as 0xbebafeca





A.1 byte and 0xbe
B.1 byte and 0xca
C.4 bytes as 0xcafebabe
D.4 bytes as 0xbebafeca


答案:A