5、.} 7.public class SerialTest extends parent implements Serializable { 8. int version = 66; 9. contain con = new contain(); 1. public int getVersion() { 2. return version; 3. } 4. public static void main(String arg
6、s[]) throws IOException { 5. FileOutputStream fos = new FileOutputStream("temp_1.out"); 6. ObjectOutputStream oos = new ObjectOutputStream(fos); 7. SerialTest st = new SerialTest(); 8. oos.writeObject(st); 9. o