File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

array and arraylist

 
auvrm papu
Ranch Hand
Posts: 105
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between array and arraylist?

thanks
 
Campbell Ritchie
Sheriff
Pie
Posts: 47300
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is that an array has a fixed capacity, whereas an ArrayList can change its capacity as required.

Arrays are set up without using a special class; ArrayLists (capital A and L) are set up using the java.util.ArrayList class.

You can find out about arrays here in the Java tutorial, and about ArrayLists in the API specification or here in the Java tutorial.

CR
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic