What is the third boolean state in java?

soldier.moth picture soldier.moth · Jun 4, 2009 · Viewed 30.5k times · Source

While I know that by definition a boolean consists of only two states, true or false. I was wondering what value does a boolean have before it is initialized with one of these states.

Answer

Adam Paynter picture Adam Paynter · Jun 4, 2009

It defaults to false.

Edit: By popular demand:

unless you're using the wrapped Boolean, which defaults to null. – sudhir.j