Two Laptop Bag*
The moose likes Java in General and the fly likes Difference b/w Array, arraylist, vector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference b/w Array, arraylist, vector " Watch "Difference b/w Array, arraylist, vector " New topic
Author

Difference b/w Array, arraylist, vector

SJ Rao
Greenhorn

Joined: Mar 05, 2003
Posts: 25
What is the difference between Array, ArrayList, Vector ?
Need this info imm.. pl someone give me a clear picture.
Thanks in advance
SJ
Chinmay Bajikar
Ranch Hand

Joined: Dec 08, 2001
Posts: 159
Hi,
Array is a simple array which u use in other languages.
ArrayList is a part of java.util package and internally maintains an Object array.It has put and get apis and it does not insist on the user to specify
the size in advance.
Vector is similar to ArrayList but is synchronized for thread safe access.
Hope tht helps,
Chinmay


The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
SJ Rao
Greenhorn

Joined: Mar 05, 2003
Posts: 25
Thanks a lot Chinmay. It did give me a clear picture.
SJ
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

Look here: click


Please ignore post, I have no idea what I am talking about.
 
 
subject: Difference b/w Array, arraylist, vector