单选题:Below is the function header for write() in OutputStream
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
```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