Collections Flashcards
ArrayList
An ArrayList implements several interfaces. The size of an arraylist dynamically increases according to the number of items added.
Hashtable
A Hashtable is the set of keys and value pairs in a collection and is organized depending on that key. The key is the number that references the value in the list of data.
Queue
A Queue symbolizes a first-in, first-out collection of objects.
Stack
A Stack signifies last-in-first-out (LIFO) collection of objects.
ICollection
All collection classes can access the ICollection interface. The ICollection is an interface for collections of similar objects like the controls on a form, the elements in a list and so on. The ICollection interface provides all features needed for a collection such as count, CopyTo etc.
IList
IList is a successor of the ICollection interface and is the base interface of all lists that hold the same set of data. Lists can be fixed or variable lengths or read-only.
IDictionary
Used for collection classes that uses key/value-based collection. The IDictionary interface is the base interface for collection of key/value pairs. Each key/value pair must have a unique key.
Ordered collection
Items in the collection are stored in a specific order.
Indexed collection
Items in the collection are identified by a numeric index.
Keyed collection
Items in the collection are identified by a unique key value.