Which is best one ?

Hi,Which is best Arraylist or Vector? Why?
[56 byte] By [NSNMurthya] at [2007-11-26 20:03:56]
# 1
ArrayList and vector both are best,because if you want thread safe you can go for vector(all the methods in vector are synchronized),where as in arraylist mehods are not synchronized,performence wise you can go for arratlist.if u want thread safe u can go for vector.
sekharchowdarya at 2007-7-9 23:03:59 > top of Java-index,Core,Core APIs...
# 2

Vector class is a legacy class(old class)

ArrayList is a new class

performance wise ArrayList is best one

but it is not thread safe

if u are inserting elements between the list

frequently it is not advisable

performance wise compare to other Collection classes

it is better one

sivaraju@javaa at 2007-7-9 23:03:59 > top of Java-index,Core,Core APIs...
# 3
Thx. But i want some more differences. Both developed by javasoft why one is less performance and ontherone is best performance....?In normal conditions Arraylist is best one ...ok
NSNMurthya at 2007-7-9 23:03:59 > top of Java-index,Core,Core APIs...