Code example for ObjectOutputStream

Methods: writeBoolean, writeObject