Hey, I have a real weird problem. I have 2 classes: (very important note: this is an example cause I can't paste the original code, I wrote it as text with no compiler)
class B {
private int num = 9;
public int getNum(){
return num;
}
public void setNum(int num){
this.num = num;
}
}
class A {
private B b = new B();
public void setB(B b){
b.setNum(b != null? b.getNum() : 8);
}
public B getB(){
if (b == null)
System.out.println("How possible?");
return b;
}
}
Now, sometimes I get the print... I don't see how's that possible.
A is a serialized class, but yet I can't figure it out...
Thanks, Udi