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 is the difference between a break statement and a continue statement?

986


Is singleton class thread safe?

948


How do you convert bytes to character in java?

941


What are kinds of processors?

933


What methodology can be employed to locate substrings inside a string?

901


What does %d do in java?

980


What does serializing data mean?

896


Is java se open source?

968


What is the final blank variable?

1066


What are the different ways of creating thread?

962


What is the purpose of finalization in java programming?

981


String class is defined under which package in java?

1018


is there a separate stack for each thread in java? : Java thread

928


Can you pass functions in java?

941


Do I need to import java.lang package any time? Why?

1309