Code example for ObjectOutputStream

Methods: close, flush, writeLong