Serialization assignment given in Java Lab