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
Explain the difference between debug.write and trace.write? When should each be used?
what is command line compiler.what are the steps and how it is related to debugging.
What is the importance of Global.asax in ASP.NET?
What is difference between asp state management and asp.net state management?
Which object is used to encapsulate the state of the client and the browser in ASP.NET?
Explain what is an assembly?
What is httpresponse?
What is a user session?
Where sessions are stored?
What is the application pool?
Can we add code files of different languages in app_code folder?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
What is odata in web api?
What’s the difference between response .redirect and server.transfer?
What is the full form of asp.net?