Which code, inserted at line 14, will allow this class to correctly serialize and deserialize?
A. s.defaultReadObject();
B. this = s.defaultReadObject();
C. y = s.readInt(); x = s.readInt();
D. x = s.readInt(); y = s.readInt();
Answer:D
Which code, inserted at line 14, will allow this class to correctly serialize and deserialize?
A. s.defaultReadObject(); B. this = s.defaultReadObject(); C. y = s.readInt(); x = s.readInt(); D. x = s.readInt(); y = s.readInt();