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

is it possible to add a object in a HASHMAP

Answer Posted / janardhan

yes we can add object in Hashmap

example:--

ArrayList l=new ArrayList();
l.add(10);

HashMap map=new HashMap();
map.put(l,"13");

here l is object

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which variables are stored in stack?

864


What are serialization and deserialization?

1205


What is a default method?

997


Can we use return in constructor?

892


What are the main features of java?

924


What is procedure overloading?

2250


What is a jagged array in java?

1054


What is the difference between method and means?

1027


What is the difference between the paint() and repaint() methods?

1018


Can an interface extend a class?

932


What is bytecode verifier?

885


how to create constants in java?

1043


What is java util hashmap?

950


How do you convert string to int in java?

1026


Explain how hashmap works?

1018