File Java Tutorial

You use an InputStream to read binary data.

InputStream
  |
  +-- FileInputStream 
  |
  +-- BufferedInputStream
FileInputStream enables easy reading from a file.
BufferedInputStream provides data buffering that improves performance.
The ObjectInputStream class is used in object serialization.