Java serialization and deserialization interview questions