Code example for ObjectOutput

Methods: write, writeBoolean, writeInt, writeObject