what r arraylist?
what the use of Hashtables?

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


Please Help Members By Posting Answers For Below Questions

Why singleton class is sealed?

696


What are the benefits of using the aggregate method in linq?

699


What is oledb in c#?

709


How to find whether the application is run from inside ide or not?

785


Explain what a diffgram, and a good use for one Define diffgram? How it be used?

733


Explain about finalize method?

729


What’s a strong name?

699


Why does my windows application pop up a console window every time I run it?

737


Is array a list?

656


What is executescalar in c#?

628


In which order the constructor is called for an inherited class?

720


How do you create partial methods?

734


What is the difference between proc. Sent by val and by sub?

667


Who introduced c#?

661


What are collections in c#?

664