Hello,
I found this question in JQPlus:
Which of the following options are valid?
...
c) i.equals(d);
d) d.equals(ln);
e) ln.equals(42);
The answer pointed by the mock exam is that c) and d) are correct, and e) isn't ().
I looked at the forum archives and also tested the code myself, and it looks like the primitive 42 is converted to an Int when it's apssed as a parameter to the equals() method. So shouldn't the correct answers be: c), d) and e) (even though they all actually return false)?
Thanks,
Justyna W.