Register
Sign In
Skip over navigation
Home
Add New Question
Jobs
Products
Array vs Collection
Question posted
in
Computer Software
on
05 2011
Rate question difficulty level
0
0 Votes
What are the differences between an array and a collection?
when will you use it ?
Add an answer
Share
|
11 Answers
LanceR
An array is a data structure that contains several variables of the same type.
An array has the following properties:
Single-Dimensional, Multidimensional or Jagged.
A jagged array is an array of arrays, and therefore its elements are reference types and are initialized to null.
Arrays are zero indexed: an array with n elements is indexed from 0 to n-1.
Array types are reference types derived from the abstract base type Array. Since this type implements IEnumerable and IEnumerable
, you can use foreach iteration on all arrays in C#.
From: http://msdn.microsoft.com/en-us/library/9b9dty7d.aspx
A collection is simply an object that groups multiple elements into a single unit. Collections are used to store, retrieve, manipulate, and communicate aggregate data.
Versions of collections include list, binary-trees, hashtables.
The difference is that arrays are list of variables of the same type. Collections can contain objects or data of any type.
ref: http://en.wikipedia.org/wiki/Collection_(computing)
11/16/2011
Jaylyn
Your's is the intelligent aprpaoch to this issue.
01/01/2012
XxDecembreexX
ordering cialis online
bfijch
colchicine
460
flomax
%-O
02/01/2012
Vivek Kumar Singh
Collections are dynamic in that they grow or shrink as you add and remove items from them.
Arrays tend to fixed in size, i.e. they can only contain a certain number of values. When you want to resize them then you need to recreate them which is normally done with the Redim statement but some languages don't allow arrays to be resized. Arrays are static in that they don't grow or shrink as you add/remove items from them.
Both allow sorting and you can get the number of elements in each very easily.Arrays use less memory and tend to perform faster(not always) Colelctions are great to work with, so easy.
02/27/2012
tn pas cher
Nike TN Pas Cher
TN Pas Cher
Nike Requin
Nike TN
Nike Air Jordans
Cheap Jordan Shoes
AIR Jordans
Nike Jordan Shoes
Nike Air Jordans
Nike Tn Pas Cher
Sac a main
Sac a main femme
sac a dos
valise
bagage à main et maroquinerie en ligne - Gsell
TN Nike
TN Requin
TN Pas Cher
TN Air Max
TN Pas Cher
Nike tn 2012
tn foot locker
TN REQUIN
Nike TN
Nike Requin
Chaussure Requin
Air Max Requin TN Pas Cher
Puma Pas Cher
04/17/2012
beauty
Do you go through endless amounts of foundation brands, trying to find one that suits and gives you a flawless coverage? Stop.
If you want flawless looking skin,
airbrush makeup
is definitely the way forward.
04/19/2012
Jady
cheap cialis sale online
tzbvmw
health insurance quotes
8-O
term life insurance
8-OOO
term life insurance
wir
04/25/2012
Bobs
classic car insurance
902635
car insurance
7614
life insurance online quote
hae
state auto insurance
%-PP
04/27/2012
MG5T
TN Requin
TN Requin Pas Cher
Nike Requin
Nike TN Requin
TN Requin
TN Pas Cher
Nike TN
Nike air max
TN REQUIN
Puma Pas Cher
Nike tn 2012
tn foot locker
TN Pas Cher
TN REQUIN
Nike TN
Nike Requin
Chaussure Requin
Air Max Requin TN Pas Cher
Puma Pas Cher
04/28/2012
Keys
auto insurance quotes
>:]]]
term life insurance rates
jzw
life insurance
ropydk
04/29/2012
2ENA
This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
www.waschmaschinenimtest.net
05/03/2012
Add an answer*
Your name
Email
Enter the code shown above:
please wait..
Company:
5minmedia
Location:
Israel
Tags:
collection
,
array
,
.net
Occupations:
Software\Web Development
add a question
Now hiring!
IT Sourcing Procurement Analyst Software Service Infrastructure
CVS Caremark
Woonsocket, RI
Strategy, including: Procurement Execution ?Maintain IT procurement process in collaboration with IT stakeholders ... legal risk mitigation strategy are addressed ?Support the development of executive briefings summarizing contract...
---------------------------
Software Development Analyst/ .NET Developer- Health IT
Northrop Grumman
Atlanta, GA
Sharp programming skills, eagerness for challenging development opportunities, and the ability to work with a ... of information security concepts and principles, as it pertains to application/service development and...
---------------------------
(IT Applications Analyst Developer Lead
Halliburton
Houston, TX
Houston, TX DUTIES: Responsible for the development, acquisition, maintenance and support of applications in assigned ... plus 7 years of progressive experience in Systems Development and Application Support, including analysis,...
---------------------------
Mgr Software Development 2-Health IT
Northrop Grumman
Little Rock, AR
and software developers. Works with members of the development team to ensure that all legacy data is ... years of relevant experience - Experience with IT Project Development Lifecycle - Experience converting data for...
---------------------------
IT Specialist (Applications Development)
Parsons
Houston, TX
in software complexity. Makes a recommendation to senior IT management and the end user. Uses charts, diagrams and ... guidance to lower-level IT staff assigned to an application development project. * Develops functional specifications to...
---------------------------
Software Development Engineer (IT Security)
Amazon.com
Seattle, WA
Role Description Amazon.com is looking for expert Software Development Engineers to develop tools supporting the IT ... for you. You will participate in every level of software development from requirements gathering to operational...
---------------------------
Software Development Engineer - Kindle with Special Offers, AmazonLocal
Amazon.com
Seattle, WA
Software Developement Engineer - Kindle Application Development, AmazonLocal AmazonLocal is looking for exceptional, ... or related field * 2+ years professional experience in software development * Fundamentals in object-oriented...
---------------------------
Manager Software Development 2-Health IT
Northrop Grumman
Little Rock, AR
and software developers. Works with members of the development team to ensure that all legacy data is ... years of relevant experience - Experience with IT Project Development Lifecycle - Experience converting data for...
Jobs
by
Simply
Hired
View all jobs