Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Interview Questions
What is an ArrayList?
Posted By :
Posted Date :
December 13, 2011
a collection of items containing a single data type values.
You can also find related Interview Question to
What is an ArrayList?
What is the difference between arraylist and array classes ?
arraylist size can be dynamically increased where as array size can't be increased.
What are the similarities between an array and an ArrayList?
The following are the similarities between an array and an ArrayList:
- Both array and ArrayList can have duplicate elements in them.
- Both are unordered lists.
- Both uses index to refer to their elements.
- Both supports null values
How to convert and ArrayList elements to IEnumerable
What's difference between HashTable and ArrayList ?
Array can be accessed using INDEX value. Hashtable provides way of accessing the index using a KEY value, thus removing the INDEX problem.
What is mean by ArrayList?
A Simple Collection that can store type of object.it instances expand to any required capacity
which method do you use for locate a special element in arraylist?
Difference between Array and ArrayList?
An array can contain only one data type ,where as an Array list can contain any data type in the form of object
Array cannot dynamically increase or decrease its size, where as Array list can
Is ArrayList is a type safe collection?
No, ArrayList is not a type safe collection because it allows you to add a any object. That means if you have one arrayList class object you can add in Integer, string, boolean, double etc value into one ArrayList class object.
ArrayList arr = new ArrayList();
Quick Links For Interview Questions Categories:
Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.
So, Start looking our
section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.
Hall of Fame
Terms of Service
Tell A Friend