Default value of 'boolean' and 'Boolean' in Java

Makky picture Makky · Jun 3, 2011 · Viewed 421.8k times · Source

What are the default values of boolean (primitive) and Boolean (primitive wrapper) in Java?

Answer

Prince John Wesley picture Prince John Wesley · Jun 3, 2011

The default value for a Boolean (object) is null.
The default value for a boolean (primitive) is false.