in Web APplication use arraylist or Vector?

My question is can we use the collections like Arraylist or Vector in a web application? If yes which is better? Say our web application is a multithreaded application.Thanks
[188 byte] By [papillona] at [2007-10-2 20:16:35]
# 1

Of course, you can. ArrayList is a replacement for Vector, so don't use Vector anymore. For the transiation time, use the List interface for both classes.

A "multithreaded application" doesn't necessarily mean that your collection need to be synchronized. It depends on what data (instances) is changed from how many threads in parallel.

MartinHilperta at 2007-7-13 22:58:58 > top of Java-index,Core,Core APIs...