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
Hai Guys..
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.

Thanks
Santosh.
You are always welcome.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Good and Effective example
thank you

View Tutorial          By: Perumal Naren at 2009-12-30 03:10:50

2. this is the thread object and thread name
View Tutorial          By: narain at 2011-12-06 07:33:07

3. Please some one send me the 6th program developed
View Tutorial          By: mounika at 2008-04-25 02:49:56

4. Plz. help me in getting code to read messages usin
View Tutorial          By: Jaydatta at 2009-04-03 20:58:57

5. that was gud example to explain abstract. i have d
View Tutorial          By: zishan at 2010-05-20 00:21:46

6. The !isset() is basically checking if the string i
View Tutorial          By: Bijan at 2012-09-21 20:49:41

7. thats is really too gud... very easy example to un
View Tutorial          By: radhika at 2011-11-27 16:32:25

8. i have asked for refercing the object of main clas
View Tutorial          By: deepesh at 2012-08-20 10:33:58

9. we can create reference variable for an abstract c
View Tutorial          By: siva at 2012-08-30 06:03:50

10. hai.....people ..............


View Tutorial          By: spartan at 2009-08-08 08:42:35