1 2 3 4 5 6 7 8 9 10 11 12 13 14
public class NonSerializableTest { private int i; public void run () { System.out.println("NonSerializableTest.run()"); i++; } public static void main (String[] args) throws Exception { NonSerializableTest test = new NonSerializableTest(); test.run(); } }