What is difference b/w Generic List and Arraylist, Generic
List Vs HashTable, Generic List Vs No Generic? Pls Explain
with example.

Answers were Sorted based on User's Feedback



What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No G..

Answer / 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

What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No G..

Answer / mani

Array list can increase and decrease size dynamically.You
donot use the REDIM keyword. You can access any item in
array using the INDEX value of the array position.

You can access array using INDEX value of array. but how
many times you know the real value of INDEX . Hashtable
provides way of accessing index using user identified key
value,thu removing the INDEX problem.

Is This Answer Correct ?    6 Yes 9 No

Post New Answer

More ASP.NET Interview Questions

By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

0 Answers  


What are sharepoint pages?

0 Answers  


What is the concept of postback in asp.net?

0 Answers  


When is an object collected by the Garbage Collector? [Four options were given]

1 Answers   ABC,


Is it possible to disable the minimized icon of a popup window using window.open. Not using iframe concept?

3 Answers   AFAS, Take United,






How does VB.NET/C# achieve polymorphism?

6 Answers   Siebel Systems,


How can you provide an alternating color scheme in a Repeater control?

6 Answers   Siebel Systems,


what is Satellite Assembly?

2 Answers  


What are the different types of cookies in asp.net?

0 Answers  


Difference between ISQL and OSQL??

1 Answers  


What ASP.NET object encapsulates the state of the client and the browser? a) The Session object b) The Application object c) The Response object d) The Request object e) The Server object

7 Answers   Bunzl Vending, Syntax Softtech,


What are session state modes in asp.net?

0 Answers  


Categories