CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
what is the definition of arraylist? plz write in brief.

Posted by: manish andy on 12/22/2007

Contact manish  andy  Contact manish andy
Category Java Interview Questions
Rating (4.8) By 20 users
Added on 12/22/2007
Views 823
Rate it!
Answers:

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.



 Posted by: Vamsi Sirivolu    

Contact Vamsi Sirivolu  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.



 Posted by: jyothsna    

Contact jyothsna  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.



 Posted by: Sumit    

Contact Sumit  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.



 Posted by: srikarreddy    

Contact srikarreddy  Contact srikarreddy


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
1)What are the actual functions of JVM?
2)When to use a class and when to use
an Abstract class?
3)what is the use of constructors other than creation of objects?
4)when to use constructors?
5)when to use Interface?
6)why java does not support pointers?
7)why multiple inheritance is not possible in java without using Interfaces?
View Answer
Why we have used to in main method in JAVA this words
1)public
2)static
3)void
4)main
5)(String args[])
View Answer
Addition of two numbers using Bitwise operators.
Reading An 2D array using single for loop
View Answer
What is UML patterns?give me clear explanation
View Answer
While developing one in JSP page we are sending request to Struts frame work.If we click two times submit button then First time only it should accept request and second time should reject that request in struts frame work.

How we can do that in controller itself...I am waiting for your Response...

View Answer
Can I execute or call one applet from another applet? If so then how??? Please Reply me...
Thanks
View Answer
what is method declaration,method attributes,method modifiers and parameters
View Answer
System Class is Used to Output text onto the Screen?
it True or False
View Answer
what is the first statement in construtor?
View Answer
What is the abstraction? Give example?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Java Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12622/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

4.8