« | Main | »

January 29, 2010

Another fairly simple, but not completely obvious Java interview question...

What is the final value of i?
int i = 3;
i += 6;
What is the final value of b?
boolean b = false;
b |= true;
What is the final value of b?
boolean b = false;
b != b;


Posted by jeff at January 29, 2010 03:46 PM