Question: Which can fill in the blank to make this code compile? A. GetObject B. ReadField C. FetchItem D. ReadItem E. GetField F. None of the
Which can fill in the blank to make this code compile?

A. GetObject
B. ReadField
C. FetchItem
D. ReadItem
E. GetField
F. None of the above.
import java.io.*; public class Pony implements Serializable { private static final ObjectStreamField [] serial PersistentFields = { new ObjectStreamField ("name", String.class) }; private String name; private Integer age; private void readObject (ObjectInputStream s) throws Exception { ObjectInputStream._ fields s.readFields (); this.name (String) fields.get("name", null); }}
Step by Step Solution
3.36 Rating (152 Votes )
There are 3 Steps involved in it
In the provided Java code snippet were dealing with the deserialization process of a serialized obje... View full answer
Get step-by-step solutions from verified subject matter experts
