Code example for ObjectOutputStream

Methods: writeBoolean, writeInt, writeUTF