Java boolean allows values of true and false while Boolean allows true, false, and null. I have
boolean
true
false
null
Boolean can be very helpful when you need three state. Like in software testing if Test is passed send true , if failed send false and if test case interrupted send null which will denote test case not executed .