Contoh Program Java Core, Serialization