The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5
Originally posted by Thirumalai Muthu:
"d and e" are incorrect because the first option cannot be true.
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
This means that if == is true than equals will always return true and hashCode will always return same hash codes....
SCJP 1.5 94%.
The greatest glory in living lies not in never falling, but in rising every time we fall.
SCJP 5
Originally posted by Thirumalai Muthu:
Two objects will be "==" only if they are of the following types:
Boolean
Byte
Character
Short
Integer(only within some range)
If the object is other than these types mentioned then two instances(objects)
will always not be "=="
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJA
Originally posted by Igor Lichs:
I think it has 4 correct answers:
- false false true
- false true true
and other two which are not in the options:
- false false false
- true true true
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJA
Originally posted by Igor Lichs:
I think it has 4 correct answers:
- false false true
- false true true
and other two which are not in the options:
- false false false
- true true true
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJA
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJA
===Vyas Sanzgiri===
My Blog
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJA