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 Hash Code in Java?

Answer Posted / siva thimmannagari

everyone knows that,the objects in the HASHMAP will be
stored in the form of Key,Value pair..

Here key is the hashcode

String s1="shiva";

if u want to know the hashcode for s1--simply type
s1.hashcode();this will give the hashcode which will be
used as a KEY

Is This Answer Correct ?    7 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java basic concept?

1088


Can we override the overloaded method?

1193


What about method local inner classes or local inner classes in java?

1104


What is map java?

1028


Tell me a few examples of final classes defined in Java API?

1156


What is comparable and comparator interface? List their differences

1147


What’s the difference between applets and standalone program?

1103


Is it possible to use string in the switch case?

1101


Where will it be used?

1990


List out five keywords related to exception handling ?

1058


What is the final variable?

1307


How do you override a method in java?

1047


Can a main method be overloaded?

1067


What is a numeric digit?

1134


Why do we use variables?

1040