Code example for ObjectOutputStream

Methods: close, flush, writeObject