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

benefits of migration from asp to asp.net hi frnds, i have to give presentation to a client about how useful would be migrating their project from asp to asp.net .plz give me some points which i should incorporate in my ppt thanks

1680


Difference between application events and session events

601


Which authentication uses a combination of windows and iis authentication?

598


What is asp.net and ado net?

526


What are session state modes?

581






What are the merits and demerits of viewstate?

585


What is a user session?

507


Explain an object, class and method.

570


What is an assembly? Explain its parts.

641


What are all the various Estimation Techniques available ?

664


What is web router?

511


What parameters can you pass in the url of the api?

667


Explain the difference between inline and code behind - which is best in?

516


How can you pass multiple complex types in Web API?

587


Can we have multiple master pages in asp net?

519