This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
wood burning stoves
 
subject: Difference b/w Array, arraylist, vector
 
Similar Threads
Difference between ArrayList and Vector
difference between ArrayList - Vector
Question in Collection?
Difference between ArrayList and Vector
What is difference between ArrayList and vector?