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
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 |
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 |
Differentiate between Server Transfer and Response Redirect?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
What is redirecting behavior?
The technical part was on ASP.Net only of web services.
Is it possible to change the index of primary key on table?
What are the advantages of Web API?
What is the use of @Register directives?
Which @page directive should you create an asynchronous page?
Explain the steps to be followed to use passport authentication.
What is meant by web application?
What is Partial in ASP.NET 2.0?
What is http pipeline in asp.net?