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


Please Help Members By Posting Answers For Below Questions

What is validation in asp.net?

550


What is the difference between asp.net and mvc?

578


How many types of file extensions for razor views in ASP.Net MVC?

574


What is difference between session and cookie?

511


What kind of data can be stored in viewstate?

530






Less than one page, how many windows will you be able to maintain?

561


Define the types of configuration files.

530


What are the security types in ASP/ASP.NET? Different Authentication modes?

556


How do you do Client-side validation in .Net?

571


Which protocol is used to call a web service?

560


What is the difference between “Web.config” and “Machine.Config”?

694


Which method do you use to enforce garbage collection in .net?

514


Explain the code Access Security (CAS) in .net Framework?

670


Where is session data stored in asp net?

510


What is asp short for?

557