Code example for ObjectOutputStream

Methods: writeBoolean, writeInt, writeLong, writeUTF