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...

Difference between hashCode() & equals()?

Answer Posted / srikanth

hashCode() method returns integer no assigned by jvm
ie ...it is for identifying objects in heap memory very
fastly

equals() it is for comparing addreess of objects

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name few java util classes introduced with java 8 ?

917


How many times finalize method will be invoked? Who invokes finalize() method in java?

1020


What is difference between fileinputstream and filereader in java?

1068


What is complexity and its types?

1033


What is a jagged array in java?

1117


What is a parameter in matrices?

1052


When is the finalize() called?

1177


How can you share data between two thread in Java?

946


What is final variable?

946


Which package is imported by default?

1082


What is hasnext in java?

1018


Why is a singleton bad?

956


What is a final class ?

1183


Can you give few examples of final classes defined in java api?

1006


What's the purpose of static methods and static variables?

1100