Page 1 of 1

About Question enthuware.ocajp.i.v8.2.1416 :

Posted: Sat Apr 11, 2015 8:32 am
by alkour
Hi,

I cannot understand exression in explanation part 3
Thus, new Boolean() = = new Boolean() is false,
but new Boolean() = = Boolean.parseBoolean(" true") is true.
It will not compile as Boolean class does not have default constructor.
Could I ask to clarify?

Re: About Question enthuware.ocajp.i.v8.2.1416 :

Posted: Sat Apr 11, 2015 9:07 am
by admin
It should be new Boolean("true") instead of new Boolean() in all the three place. Fixed.
thank you for your feedback!