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

Can we place the any object to key attribute of
HashMap<key,value>?

Answer Posted / ramarao katta

yes, we can place any object as key value but that object
must and should implement the hashcode method.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways in which a thread can enter the waiting state?

990


What are the benefits of operations in java?

1130


explain what is transient variable in java?

1191


Why we used break and continue statement in java?

1220


What are byte codes?

1298


What do you mean by collectors in java 8?

983


Is vector ordered in java?

1051


How do you compare arrays in java?

1001


What do you know about the garbate collector?

1087


Is 0 true or false in java?

1034


What are the loops in java?

1027


What is illegal identifier in java?

1076


What is downcasting?

1208


Is string is a keyword in java?

1033


When do we use hashset over treeset?

1104