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

Under what conditions is an object’s finalize() method invoked by the garbage collector?

1029


What is difference between calling start() and run() method of thread?

1121


Why arraylist is not synchronized in java example?

1050


Why array is used in java?

955


What defines function?

966


How to make a write-only class in java?

1052


What is the disadvantage of java?

947


What Is Query Throttling in java?

991


What is comparable and comparator interface? List their differences

1091


Can the garbage collection be forced by any means?

982


What is unmodifiable list in java?

948


What is final, finally, finalize?

1095


What are the default and parameterized constructors?

1047


Can interface be private in java?

1003


What are the main uses of java?

981