Code example for ObjectOutputStream

Methods: writeInt, writeLong, writeObject