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

What is native method in java?

1014


Mention some features of java?

907


Can we have more than one package statement in the source file?

1021


What is public static?

977


What is method in research paper?

1035


What are access specifiers available in java?

968


Can each java object keep track of all the threads that want to exclusively access it?

908


What is advantage of java?

954


Why isn’t there operator overloading?

1012


What exactly is a .class file?

984


What is function overriding and overloading in java?

1051


What is the byte range?

980


What variables are stored in stack?

915


What do you mean by buffering?

975


How to sort numbers in java without array?

926