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. Hi,
Please tell me how to execute the above

View Tutorial          By: DurgaPrasad at 2011-11-24 06:04:48

2. Hi, I used your fix and it looks like it worked fi
View Tutorial          By: Eddie at 2011-02-21 18:41:06

3. Best Example for Inheritance. Thank lot!

View Tutorial          By: Periyasamy C Chennai at 2010-07-09 01:35:30

4. int n = 0;
for (int m = 0; m < 5; m++) {

View Tutorial          By: max at 2011-05-26 09:41:26

5. Thanks :)
View Tutorial          By: Anuj Bhatnagar at 2015-05-06 14:02:19

6. i really hate do while loop statement, can u pls h
View Tutorial          By: mARjO at 2011-09-01 03:50:18

7. very good tutorial..
View Tutorial          By: shobhit at 2010-05-04 12:17:41

8. Thanks a lot!!!.Quite helpful article.
keep

View Tutorial          By: Raj at 2008-03-14 03:59:56

9. how to create inode address using c++
View Tutorial          By: pooja at 2014-06-24 05:50:33

10. thanks emily, this was fantastic... just saved me
View Tutorial          By: philip at 2010-04-10 20:39:08