Code example for ObjectOutputStream

Methods: writeInt, writeObject