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
How does asp.net work?
Is there any property names “isnavigating”?
What is server side session?
What is the best Macanism to clear the Cache in asp.net
What are cookies in asp.net?
What is the function used for removing an event listener?
In Data grid the question is below quantity price total these are 3 fields available in data grid if you enter quantity the total has to update automatically.Price field is already filled completely
What is Partial PostBack in ASP.NET?
What is cookies in asp net?
Differentiate strong typing and weak typing
Write a code snippet to implement the indentation in json in web api.
How can u debug your .net application?
What is the function of the ViewState property?
What permissions do asp.net applications posses by default?
Describe how passport authentication works.