Code example for ObjectOutput

Methods: writeBoolean, writeInt, writeObject