Code example for ObjectOutputStream

Methods: flush, reset, writeLong, writeObject