問題文
A rebuilt reader adds a class in the middle of its hierarchy, and instances that arrive from an older writer come out with the fields of that new class left at their initial values. Which special method does the deserialization side call for that class, and why?
選択肢
- The one that runs where no data is present, because the stream does not list that class among the superclasses of the object and the method is charged with initializing all of the state that belongs to it
- The one that reads the state of the object, because the stream carries a record for every class of the Serializable hierarchy and the method is charged with reading past the data of its own layer
- The one that runs where no data is present, because the stream does not list that class among the superclasses of the object and the method is charged with asking the writer for the missing bytes of the record
- The one that reads the state of the object, because the stream carries a record for every class of the Serializable hierarchy and the method is charged with reading the fields of the class it belongs to