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
View Tutorial          By: Raman at 2014-11-13 07:47:11

2. your nice
View Tutorial          By: rymer at 2011-03-23 01:30:41

3. wats the output ?
View Tutorial          By: siri at 2011-10-25 08:20:10

4. How do I insert an image in a list? I am using Vis
View Tutorial          By: anu at 2010-04-16 03:07:00

5. @pawan: Wow. Your comment is museum-quality art, a
View Tutorial          By: Steve at 2013-02-21 20:30:47

6. I need full code for sending SMS. Please send to m
View Tutorial          By: Ramesh at 2014-05-21 06:54:52

7. @mahesh yes you can use this to connect to any db
View Tutorial          By: Rita sen at 2012-01-05 05:18:13

8. Hai.. i tried with d above code but am getting an
View Tutorial          By: muthupandi at 2010-08-17 09:49:23

9. Hi ! do u know have use FileOutputStream in Surfac
View Tutorial          By: lukas at 2011-07-18 16:55:20

10. lllllllllllllllllllllllllllllike
View Tutorial          By: duck at 2015-04-10 19:19:47