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

How to comment out asp.net tags?

0 Answers  


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

0 Answers  


How would you get asp.net running in apache web servers? Explain it's limitations.

0 Answers  


What is postback and autopostback in asp.net?

0 Answers  


What data type does the RangeValidator control support?

3 Answers   Visual Soft,


Suppose there is one web farm with 3 servers inside with same configuration and the same project is running inside all servers.Which session mode is usde for all these and why?

3 Answers  


• What Session State providers are available in ASP.NET? What are the pros and cons of each?

2 Answers   Infosys,


what is the purpose of update panel control in ajax?

2 Answers   CSC,


What is the difference between globalization and localization?

0 Answers  


What are the different ways you would consider sending data across pages in ASP (i.e between 1.asp to 2.asp)?

1 Answers   Net Solution,


Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


What is postback in asp net?

0 Answers  


Categories