Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between equals method and ==

Answer Posted / anoop

Normally == using to compare value type. If 2 object is
refering same memmory, it will return true otherwise false

Comparing object , you have to use equals, bz it will
compare all the values in it.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an immutable class? How to create an immutable class?

1068


Explain the difference between serializable and externalizable in java?

1070


What is an iterator interface in java programming?

967


How do you use substring in java?

1143


Define packages in java?

1007


How do you add spaces in java?

1012


What is structure of java heap? What is perm gen space in heap?

1127


I want to persist data of objects for later use. What’s the best approach to do so?

939


Can we extend immutable class?

994


What is serialversionuid?

1091


What are loops in java? What are three types of loops?

1033


What is main difference between variable and constant?

1038


How does a cookie work in Servlets?

847


What is == mean?

998


What is the relationship between clipping and repainting under awt?

1150