title: Java core: returning null as boolean
body: <p>I noticed this thing: my class has <code>boolean</code> member and at some run-point I see it's value in debugger as <code>null</code>. But when I use the getter method, it returns <code>false</code>.</p>
  
  <p>I know, most books tell you that <code>boolean</code> in Java has only two values, unlike C/C++ in which every non-zero number can be interpreted as <code>true</code>. So I wonder, what's happening in there?</p>
  
  <p>Are there any other situations when some value of other type or <code>null</code> can be interpreted as <code>false</code>? Perhaps explanation of this is somewhere in JLS, could someone point me to it?</p>
  
  <p><strong>EDIT</strong>: Indeed yesterday was a bad day for debugging. First i wasted 4 hours to find a source of a bug which disapeared when i reversed source and made same changes again. Then this. I just tried to reproduce and couldn't. Was it galucination or it's just monday is a hard day? I don't know. Thanks everyone for your responses! I guess you can vote to close or delete this question now.</p>