Comment on Tutorial - equals( ) Versus == in Java By Mashoud



Comment Added by : Avnish

Comment Added at : 2010-10-28 04:00:20

Comment on Tutorial : equals( ) Versus == in Java By Mashoud
Ku is quite correct. When you create any object, it goes to the string pool. If you are creating again the same object having different reference variable the jvm directly calls it from the pool. It is the property of jvm not to create replica of objects for overhead. Try it, both are true.

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. Nice tutorial, I got how it's done, but the differ
View Tutorial          By: FriendlyNoob at 2015-07-20 17:27:08

2. Great Thanks
View Tutorial          By: anawaz at 2012-10-05 10:28:20

3. Nice Explanation..................... It's very ve
View Tutorial          By: venkat at 2011-04-09 13:42:45

4. I am looking for a J2ME programmer that can create
View Tutorial          By: Gary Wallis at 2007-10-14 15:35:00

5. Not bad,but need some implementation
View Tutorial          By: surjeet katwal at 2010-01-19 04:41:15

6. i need save,delete,update use arrayList.
th

View Tutorial          By: kyaw at 2010-04-07 01:55:02

7. it was very useful to me
View Tutorial          By: balaji at 2012-01-09 22:50:25

8. This is probably a good java tutorial but it made
View Tutorial          By: lol at 2012-09-15 21:20:09

9. i find out this example quite heplful thnx adimn..
View Tutorial          By: ayaz pathan ( MUET) at 2010-02-21 10:40:18

10. Actually, the given accuracy just barely exceeds w
View Tutorial          By: William Fraser at 2015-06-07 16:37:52