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 optional in java 8?

1009


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1044


Why declare Main() inside the class in java ?

991


how come we know the object is no more used in the class?

6363


What is method reference?

920


How does thread synchronization occurs inside a monitor?

1039


What is meant by flickering?

1029


Why pointers are not used in java?

1047


Explain notifyall() method of object class ?

1044


Why is whitespace important?

1019


How do you do math powers in java?

1008


Why arraylist is used in java?

1013


What is final int?

947


Is 0 an irrational number?

997


Are arrays passed by reference in java?

876