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

Why session is more secure than cookies?

0 Answers  


What is application in asp net?

0 Answers  


what is .net

15 Answers   Net Solution,


Explain the difference between panel and groupbox classes using .net?

0 Answers  


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

0 Answers   HCL,






Differentiate an ADO.NET Dataset and an ADO Recordset with its functionality?

3 Answers   Siebel,


In a page u have Web user controls . So what is the order in which the Page life Cycles takes place?

1 Answers  


What object is used to encapsulate a rowset? a) DataSet b) DataAdapter c) DataRowSet d) DataTable

2 Answers   Syntax Softtech,


What is the difference between typeof() vs gettype()?

0 Answers  


What is the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?

1 Answers   Innvectra,


What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData()

2 Answers   Syntax Softtech, winfoware,


What is a page life cycle? What are the events in a page life cycle?

0 Answers  


Categories