System.out.println("readExternal called for class AA"); a = stream.readInt();
System.out.println("writeExternal called for class AA"); stream.writeInt(a);