<<< I/O class hierarchy | Index | OutputStream hierarchy, raw byte streams >>> |
A binary file stores data in the same format and with the same number of bytes as is used by that data when it is in the computer's memory:
int data is written in four bytes
double data is written in eight bytes
char data is written in two bytes
boolean data is written in one byte
and so on
<<< I/O class hierarchy | Index | OutputStream hierarchy, raw byte streams >>> |