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 / venkat

yes we can add object in Hashmap

like the example is

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

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

here list is object

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you invoke a method?

952


Can memory leak happen java?

967


What is meant by call by reference?

948


How many types of flags are there?

957


Can you start a thread twice in Java?

1062


I want to store more than 10 objects in a remote server? Which methodology will follow?

3124


How can you write a loop indefinitely in java programming?

955


What are computer functions?

883


Is 0 a prime number?

928


What is the difference between method overriding and overloading?

1177


What are exception handling keywords in java?

978


When should I use singleton pattern?

983


What are the different types of java?

991


What are filterstreams?

1021


Highest level event class of the event-delegation model?

3954