Answer Posted / kautilya
arraylist is a collection of objects of same type. It
implements IList interface. it can grow dynamically, we can
add elements in it at runtime. it should be used when we
dont have information that how many elements will get
stored in it. it also has facility of searching and sorting.
Hashtable is storing data in key-value pair, where key
field will remain unique. Here elements can be searched
using key value. It is serializable.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How does a while loop work?
Can we inherit static class in c#?
Are classes passed by reference in c#?
What do you mean by winforms in c#?
What is pure abstract class in c#?
what are nullable types in c#
What is platform independence"?
Can a constructor be private in c#?
Can extension methods access private members?
What is difference between ienumerable and list?
What is base class in c#?
Why do I get a "cs5001: does not have an entry point defined" error when compiling?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
Does unity require coding?
Explain the difference between arraylist and array and in c#?