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. very nice
View Tutorial          By: Md Irshad Alam at 2014-10-29 18:58:53

2. everything is easy to learn from your website.I un
View Tutorial          By: sumitra barua at 2012-05-30 03:13:10

3. Thanks, it solved my problem with "sun.securi
View Tutorial          By: haasdg at 2013-10-29 14:12:51

4. this code runs permanently!!! created by diko(Turk
View Tutorial          By: ali at 2013-08-12 07:56:01

5. as we write:
ob1.t.join();
Does t

View Tutorial          By: abc123 at 2011-04-03 13:33:33

6. Great Sample, it helped me alot

Tha

View Tutorial          By: Mike at 2010-03-02 04:39:57

7. Sorry, please disregard my previous comment... Tha
View Tutorial          By: choco at 2010-01-03 02:21:09

8. Use (JavaScript) below code to display client dat
View Tutorial          By: pmprash at 2009-12-22 01:15:33

9. please send me the code of this movable clock and
View Tutorial          By: dafi at 2008-05-14 05:06:08

10. really understandable
but 'm expecting with

View Tutorial          By: rajkumar at 2008-03-14 03:53:21