Question:
What's ArrayList in .Net (VB.Net or C#) What's the advantageous using ArrayList.
Answer:
ArrayList is an extended managment of Arrays....
ArrayList can hold objects(custom...or...defined)
say i have an object user with properties name and email
my AraayList can hold users object...means one or more
Array is Type specific....so can hold Types like int, string etc......
Source: CoolInterview.com
Yes the above answer is correct Source: CoolInterview.com
Answered by: Bimal Chandra Patel | Date: 12/28/2007
| Contact Bimal Chandra Patel
Along with the above features, Length of an ArrayList can increase dynamically at runtime as required. Source: CoolInterview.com
Answered by: Prasanna Chandra | Date: 8/21/2008
| Contact Prasanna Chandra
Arraylist can be used to store objects of any recognised .NET type: each element maybe of a different type also. It gives us the advantage that we need not specify the exact size during declaration: it is extensible dynamically. Source: CoolInterview.com
Answered by: Sindhuja | Date: 4/30/2010
| Contact Sindhuja
ArrayList is a Class of System.Collections Namespace where the length of the arraylist can increase dynamically of any datatype value Source: CoolInterview.com
Answered by: Arif | Date: 8/6/2010
| Contact Arif
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|