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 validation in asp.net?
What is the difference between asp.net and mvc?
How many types of file extensions for razor views in ASP.Net MVC?
What is difference between session and cookie?
What kind of data can be stored in viewstate?
Less than one page, how many windows will you be able to maintain?
Define the types of configuration files.
What are the security types in ASP/ASP.NET? Different Authentication modes?
How do you do Client-side validation in .Net?
Which protocol is used to call a web service?
What is the difference between “Web.config” and “Machine.Config”?
Which method do you use to enforce garbage collection in .net?
Explain the code Access Security (CAS) in .net Framework?
Where is session data stored in asp net?
What is asp short for?