DEV Community

Discussion on: Effective Java Tuesday! Avoid Creating Unnecessary Objects!

Collapse
 
ujaehrig profile image
Ulf Jährig

As I have written in another reply, in this case the boxing will not consume another 40 bytes, as only the reference to the Boolean.FALSE constant will be returned.