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

Explain about public and private access specifiers?

981


what is meant by encapsulation?

1040


What is covariant return type?

1072


Why we override equals() method?

990


Explain about method local inner classes or local inner classes in java?

972


How to make a read-only class in java?

1085


What is a substring of a string?

1095


what are Hostile Applets?

2023


What are the fileinputstream and fileoutputstream?

1023


Write a java program to print fibonacci series?

914


What is methodological theory?

940


who can i handle multiple client in RMI

1840


What is the purpose of the system class in java programming?

1022


What is the instance of an object?

1131


Can we return null in java?

1075