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
How does session state work in asp.net?
What is the importance of Global.asax in ASP.NET?
How do sessions work?
Can I stream live content/events?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
Why is asp.net so popular?
What are the different types of validation controls provided in ASP.NET?
Describe state management in asp.net?
Define reflection in .net?
What is preprocessor in .net and type, where it use?
What is a web farm?
What is an asp.net validator? And, mention its types.
Explain the difference between asp & asp.net.
How do u deploy your asp.net application?
What are the Types of session management in ASP.NET