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.
# 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