Question:
what is the definition of arraylist? plz write in brief.
Answer:
ArrayList is an array that grows dynamicaly when needed. In Java an array is of fixed length. Once the array is created the user needs to know the length of the array as to operate with it since the array cannot grow nor can be reduced in size. This drawback is overcome by ArrayList. ArrayList dynamically increases or decreses it size depending on its untility. ArrayList class extends AbstractList class. AbstractList extends AbstractCollection and implements List interface. Source: CoolInterview.com
Answered by: Vamsi Sirivolu | Date: 3/18/2008
| Contact Vamsi Sirivolu
Programmers are frequently faced with the choice of using a simple array or an ArrayList. If the data has a known number of elements or small fixed size upper bound, or where efficiency in using primitive types is important, arrays are often the best choice. However, many data storage problems are not that simple, and ArrayList (or one of the other Collections classes) might be the right choice. Source: CoolInterview.com
Answered by: jyothsna | Date: 5/9/2008
| Contact jyothsna
Array list is a data structure and is used to store the temperary values. Like list... you can store and pass the object in arrylist and get the values from that object by iterating the arrylist. Source: CoolInterview.com
Answered by: Sumit | Date: 5/12/2008
| Contact Sumit
Arrylist is an arry only, but it is dinamic.in this increase and decrese dinamically.it is used to store the values temperarly.it accept values as an object,so it can store any thing like sting,int decimal.it uses boxing and unboxing for it. Source: CoolInterview.com
Answered by: srikarreddy | Date: 1/9/2010
| Contact srikarreddy
arrylist is a predefined interface its concreat subclss of vector Source: CoolInterview.com
Answered by: prathyusha | Date: 5/23/2010
| Contact prathyusha
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.
|