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


What is difference b/w Generic List and Arraylist, Generic
List Vs HashTable, Generic List Vs No Generic? Pls Explain
with example.

Answers were Sorted based on User's Feedback



What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No G..

Answer / debshankar bhattacharjee

Array List
1.Size/length of Array List can be increased or decreased
automatically.
2.Array list contains different types in the same array and
at the time of retrieving that value need to cast in
appropriate type.

Generic List:
Type of Generic list deceided at the time of compile and in
one generic list , we can include only any one type of
objects/value.
for example. if we write ,List<int> the this list can
contain only integer value.If we want to insert any string
then another list to be created.

Generic list is more efficient than arraylist

Is This Answer Correct ?    13 Yes 0 No

What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No G..

Answer / mani

Array list can increase and decrease size dynamically.You
donot use the REDIM keyword. You can access any item in
array using the INDEX value of the array position.

You can access array using INDEX value of array. but how
many times you know the real value of INDEX . Hashtable
provides way of accessing index using user identified key
value,thu removing the INDEX problem.

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More ASP.NET Interview Questions

What is the purpose of App_Code folder in ASP.NET? Why we this?

0 Answers   Sans Pareil IT Services,


detail code for sql data connections?

2 Answers  


Project Architecture (3tier, n-tier)

1 Answers   Syntel,


What is the use of global.asax file?

0 Answers  


How do we access view state value of this page in the next page?

0 Answers   MindCracker,


Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

3 Answers   HCL, Wipro,


How can you display all validation messages in one control?

0 Answers  


What is Dynamic Web and discuss its usage with the help of real life examples?

0 Answers   Huawei,


Explain how cookies work. Give an example of cookie abuse.

0 Answers  


Which control has default post back is enabled(true)?

0 Answers   Sans Pareil IT Services,


What is the usage of DelegatingHandler?

0 Answers  


How to comment out asp.net tags?

0 Answers  


Categories