Code example for ObjectOutput

Methods: writeInt, writeObject