Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

which is faster ArraytList Or Collection ? how?
hows the Hashing works internally ?

Answer Posted / ashutosh tripathi

Arraylist itself is a part of collection.
From a .NET perspective, a collection could be defined as
an object that implements one or more of the
System.Collections.ICollection,
System.Collections.IDictionary, and
System.Collections.IList interfaces.

This definition leads to my classification of the "built-
in" collections found in the System.Collections namespace
into three broad categories:
Ordered collections: Collections that implement only the
ICollection interface are usually distinguished by the fact
that insertion order controls the order in which objects
may be retrieved from the collection. The
System.Collections.Stack and System.Collections.Queue
classes are both examples of ICollection collections.
Indexed collections: IList-implementing collections are
distinguished by the fact that their contents can be
retrieved via a zero-based numeric index, like an array.
The System.Collections.ArrayList object is one example of
an indexed collection.
Keyed collections: Collections implementing the IDictionary
interface contain items that can be retrieved by an
associated key value of some kind. The contents of
IDictionary collections are also usually sorted in some
fashion based on the key valu and can be retrieved in
sorted order by enumeration. The
System.Collections.HashTable class implements the
IDictionary interface.

ArrayList

The System.Collections.ArrayList class, which implements
only IList, could best be described as a hybrid of a normal
array and a collection. ArrayLists hold items in the order
they were added. Items are assigned an index identifier and
can be retrieved in any order via their associated index
number. The ArrayList grows as new items are added to it,
which makes it more flexible than a normal array. However,
an ArrayList has more overhead than a traditional array and
is not strongly typed, accepting anything that can be cast
to System.Object (in other words, everything).

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between asp.net mvc and asp.net webforms

1004


What are the types of authentication in asp.net?

957


What are the HTML server controls in ASP.NET?

1044


What are the differences between code behind and code inline?

1004


How can we communicate with each server in N-tier Architecture? and what are the methods?

2188


Can any body provide me the sample web application in asp.net

1904


Which validator control you use if you need to make sure the values in two different controls matched?

1029


Explain Life cycle of ASP.NET page when a request is made.

1173


Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?

2719


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

985


What is a session http?

866


How can we inherit a static variable?

996


How many web config files can be created for an application?

794


What is autopostback in asp net?

980


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2402