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. Hello,
i was run your given program in ecli

View Tutorial          By: vishnu chauhan at 2013-01-24 11:42:16

2. its really helpfull to understand.
View Tutorial          By: rakhi at 2010-08-08 12:45:05

3. Hi Shweta, Thanks for pointing the typo error in t
View Tutorial          By: Jagan at 2008-07-12 21:36:46

4. hai...
i am completed MCA am good at java.

View Tutorial          By: HEMALATHA at 2013-08-03 10:04:57

5. Actually, 120º *is* 2.0943951023931953
View Tutorial          By: Stephen Blythe at 2012-04-02 03:39:03

6. how to append data to existing excel sheets withou
View Tutorial          By: nim at 2011-03-23 00:28:10

7. May be someone would find this useful.


View Tutorial          By: Vsk at 2010-02-22 00:48:42

8. Very Nice Explanation.
View Tutorial          By: Anuj Bansal at 2012-08-25 12:23:59

9. Nice Blog
View Tutorial          By: RAKESH KUMAR at 2015-08-04 10:07:50

10. I have ran this code but each port has raised an &
View Tutorial          By: Jawnie at 2012-03-29 07:23:22