What is difference b/w Generic List and Arraylist, Generic
List Vs HashTable, Generic List Vs No Generic? Pls Explain
with example.
Answer Posted / 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 |
Post New Answer View All Answers
What is the application pool?
How we can force all the validation controls to run?
What is data binding in asp net?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
Explain about Application and Session Events ?
In how many ways we can retrieve table records count?
Which authentication uses a combination of windows and iis authentication?
What’s the difference between asp.net web forms and asp.net mvc?
Can we handle the error and redirect to some pages using web.config?
What is manifest in .net framework?
What is a master page and what does it do?
Can viewstate be accessed in another page?
What is the difference between server-side scripting and client-side scripting?
What is the difference between user control and custom control?
What are directives in asp.net? List down all the important directives.