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

What is string length in java?

950


What is anti pattern in cyber security?

1029


What is collection class in java?

1007


What are the basic interfaces of java collections framework?

1119


Can we override constructors in java?

1142


What is the equal sign?

1123


What is the collection interface?

1022


Is it necessary that each try block must be followed by a catch block?

1019


How can I right-justify a string?

1180


How do you generate random numbers in java?

1006


Can java hashmap have duplicate keys?

1029


Which oo concept is achieved by using overloading and overriding?

1012


What about interthread communication and how it takes place in java?

1059


What is the point of polymorphism java?

1018


What is ternary operator in java?

1065