Page 1 of 1

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

Posted: Sun Jun 21, 2015 12:14 pm
by ElizabethCM
Hi Paul,

I am not sure I understand what you meant in the last sentence of the Explanation:
If both are Boolean wrappers, then their references are compared just like in the case of other objects.
Thus, new Boolean("true") == new Boolean("true") is false, but new Boolean() == Boolean.parseBoolean("true") is true.
can we have new Boolean()? I guess not as we have only two constructors, one that takes a String and one that takes a boolean as parameters.
I guess it should have been:
...but new Boolean(true) == Boolean.parseBoolean("true") is true

I might be wrong so please correct me if so. Thanks

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

Posted: Sun Jun 21, 2015 6:34 pm
by admin
You are right. The string parameter is missing. Fixed.
thank you for your feedback!

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

Posted: Wed Jun 24, 2015 12:01 pm
by ElizabethCM
You're welcome, thanks for all your answers and help.
Should I update the jar file? I do not see your change
Thanks

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

Posted: Wed Jun 24, 2015 9:39 pm
by admin
You are welcome :)
No, you need to update the question bank. Just use the Tools->Check for question bank update menu.

HTH,
Paul.

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

Posted: Thu Jun 25, 2015 4:04 pm
by ElizabethCM
Thanks, I did it :)