Friday, February 11, 2005

| vs ||

Obie is puzzled by the use of |= as a boolean operator. I can not help my smile when I read that as that is exactly sort of thing I was not aware of until I prepared for my SCJP. I know all along that boolean operators || and && do lazy evaluation. What I didn't know is that | and & are also valid boolean operator, which always evaluate both operands.

Guess I did get something out of SCJP afterall.

Technorati Tags: ,

No comments: