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



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. Thanks a lot! This really helped!!!
View Tutorial          By: SuperSeppel13 at 2009-04-14 04:25:06

2. Works thnx :D :D :D :D
View Tutorial          By: nik at 2014-11-09 20:44:29

3. Thanks for this section. Clears most of my doubts.
View Tutorial          By: Melvin at 2008-07-05 04:54:19

4. can anyone tell me which type of device i need to
View Tutorial          By: dhanunjay at 2009-04-01 00:31:17

5. The example is awesome i found it most useful amon
View Tutorial          By: sabir pasha at 2009-01-20 05:11:34

6. thanks for this tutorial! it's very useful
View Tutorial          By: Miguel at 2011-06-26 21:15:00

7. It's good but not easily understandable....
View Tutorial          By: koshal at 2010-12-19 23:32:05

8. Does Wait() inside synchronized create a race cond
View Tutorial          By: Aviator168 at 2010-04-21 16:02:06

9. You saved my but by posting this. Thank You. I j
View Tutorial          By: cranakis at 2014-09-19 16:10:20

10. i am run code this rectify this error please some
View Tutorial          By: indiran at 2010-01-28 01:45:56