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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is the arraystoreexception thrown?

1079


What is boolean strategy?

1176


What are java packages? What's the significance of packages?

1403


What is difference between == equals () and compareto () method?

1096


Can we inherit inner class?

1071


What is a concrete classes? Is Java object class is concrete class?

1026


What is string args [] in java?

1070


Does java allow default arguments?

1055


Why multiple inheritance is not supported by java?

1021


What is singleton math?

1215


What is array and arraylist in java?

1160


Describe what happens when an object is created in java ?

1063


Difference between a process and a program?

1158


What happens if main method is not static?

1048


What is locale in java?

1058