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. import java.io.*;
class lastindexof

View Tutorial          By: arya at 2012-11-07 08:37:59

2. Its working Great.
Here i want to ask one

View Tutorial          By: Manish at 2015-03-18 11:55:20

3. Good one. Clear basic concept
View Tutorial          By: Joshua at 2010-03-12 01:13:08

4. what is the return type for clicker method? The pr
View Tutorial          By: Gautam at 2013-10-14 15:36:27

5. nice tutorial
View Tutorial          By: Raman at 2014-11-13 07:47:11

6. class Abc
{
public void display()
View Tutorial          By: Umapathi REddy at 2012-05-23 09:54:29

7. this site is good, can anyone plz suggest me how t
View Tutorial          By: Prithvi at 2008-08-27 01:09:56

8. Can any one help me writing the code...
In

View Tutorial          By: Prajwal at 2011-11-08 10:19:58

9. really friends its very useful site for java begin
View Tutorial          By: shekhar at 2011-05-21 03:04:32

10. it is very very use full to us
View Tutorial          By: santhosh at 2008-12-07 14:46:13