Why should I pass Boolean as a parameter instead of "boolean"?

Posted by ferrari fan on Stack Overflow See other posts from Stack Overflow or by ferrari fan
Published on 2010-04-26T18:49:51Z Indexed on 2010/04/26 18:53 UTC
Read the original article Hit count: 160

Filed under:
|

Hi,

A co-worker asked me to change a signature from using a primitive "boolean" to using a classed "Boolean". He didn't offer a very good explanation why?

Have any of you heard of this and can any of you explain why it matters or doesn't matter?

Edit: He mentioned that it was good practice for public methods.

© Stack Overflow or respective owner

Related posts about java

Related posts about j2ee