Comment on Tutorial - equals( ) Versus == in Java By Mashoud
Comment Added by : Santosh
Comment Added at : 2010-09-19 08:17:52
Comment on Tutorial : equals( ) Versus == in Java By Mashoud
Itâ€™s nice to see your discussion on equals() and == operation
Yes, some older version of JVM having different behavior but in case of string the == will return true (without explicit new key word.) since it immutable nature. Thatâ€™s how itâ€™s working in string pool.
This may useful.
You are always welcome.