2. import java.io.*; 3. public class Network { 4. public static void main(String[] args) { 5. Traveler t = new Traveler(); 6. t.x1 = 7; t.x2 = 7; t.x3 = 7; 7. /* serialize t then deserialize t*/ 8. System.out.println(t.x1 + " " + t.x2 + " " + t.x3); 9. } 10. } 11. class Traveler implements Serializable { 12. static int x1 = 0; 13. volatile int x2 = 0; 14. transient int x3 = 0; 15. }