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()?

Answers were Sorted based on User's Feedback



Difference between hashCode() & equals()?..

Answer / rohan

equals() method of string class compares the contaits of string
equals() method of object class compares the address of objects
Hashcode() method returns the unique identification code of
particular object.

Is This Answer Correct ?    4 Yes 0 No

Difference between hashCode() & equals()?..

Answer / 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

Difference between hashCode() & equals()?..

Answer / 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 ?    3 Yes 3 No

Post New Answer

More Core Java Interview Questions

Why is the singleton pattern considered to be an anti pattern?

0 Answers  


What is an off by one error in java?

0 Answers  


Can a main method be overloaded?

0 Answers  


What is the technique adopted to create an immutable class?

0 Answers  


What is nextline method in java?

0 Answers  


What does index mean in java?

0 Answers  


In case of inheritance what is the execution order of constructor and destructor?

0 Answers   Agilent,


Can a final method be overloaded?

0 Answers  


What is the benefit of inner classes in java?

0 Answers  


Why do we use public static with the main function in Java?

13 Answers   College School Exams Tests, Infosys,


Any one can explain how the inerface uses in java. give with example.

1 Answers   IBM,


write a program that list all permutations of ABCDEF in which A appears before B?

0 Answers   Nissan,


Categories