Java boolean allows values of true and false while Boolean allows true, false, and null. I have
Use boolean rather than Boolean every time you can. This will avoid many NullPointerExceptions and make your code more robust.
Boolean is useful, for example
MessageFormat.format().