This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 984

Look here: click


Please ignore post, I have no idea what I am talking about.
 
Don't get me started about those stupid light bulbs.
 
subject: Difference b/w Array, arraylist, vector
 
Similar Threads
What is difference between ArrayList and vector?
Difference between ArrayList and Vector
difference between ArrayList - Vector
Question in Collection?
Difference between ArrayList and Vector