|
![]() |
"History would be kind to me, for I intend to write it."
~Sanjeev Singh<br />SCJP 1.5
s1 and s2 will point to same string Priyam which has been created and exists in the pool at the time when you declared s1=Priyam.
all events occur in real time
~Sanjeev Singh<br />SCJP 1.5
"History would be kind to me, for I intend to write it."
-- SCJP 5, OCPJBCD 5, OCPJWSD 5 (in progress)
-- SCJP 5, OCPJBCD 5, OCPJWSD 5 (in progress)
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Hope you gugs got it. Can anyone tell what is the limit for the wrapper classes values for the refernces return true???
here is the basic rule Two instances of the followin wrapper objects will always be == (means return true) when the "primitives "values" " are same
1. Byte
2. Boolean
3. Character from \u0000 to \u007f
4. Short and Integer from -128 to 127
~Sanjeev Singh<br />SCJP 1.5
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
~Sanjeev Singh<br />SCJP 1.5
Something about .... going for a swim. With this tiny ad ...
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!
https://www.kickstarter.com/projects/paulwheaton/low-tech
|