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 int argc char * argv?

1171


What is java thread dump, how can we get java thread dump of a program?

1006


Is java same as core java?

1103


What are the skills required for core java?

1017


how are methods defined?

1057


What 5 doubled?

990


what is difference between equals and ==?

1065


How do you declare a variable?

1099


How do you sort a set in java?

922


What is vector capacity in java?

1088


Is empty list java?

933


For class CFoo { }; what default methods will the compiler generate for you>?

1075


What are encapsulation, inheritance and polymorphism?

1015


Can an interface extend another interface?

1057


What is a native method in java programming?

1073