1. import java.io.*; <br /> 2. public class Foo implements Serializable { <br /> 3. public int x, y; <br /> 4. public Foo( int x, int y) { this.x = x; this.y = y; } <br /> 5. <br /> 6. private void writeObject( ObjectOutputStream s) <br /> 7. throws IOException { <br /> 8. s.writeInt(x); s.writeInt(y) <br /> 9. } <br /> 10. <br /> 11. private void readObject( ObjectInputStream s) <br /> 12. throws IOException, ClassNotFoundException { <br /> 13. <br /> 14. // insert code here <br /> 15. <br /> 16. } <br /> 17. } <br /> Which code, inserted at line 14, will allow this class to correctly s
A、 s.defaultReadObject();
B、 this = s.defaultReadObject();
C、 y = s.readInt(); x = s.readInt();
D、 x = s.readInt(); y = s.readInt();