Safe to use ArrayList without concerning thread ?
posted 13 years ago
We all know ArrayLIst is faster than Vector but it is not synchronized. In my servlet application, I have a central servlet which dispatches work to different action classes by passing the HttpeServletRequest and HttpServletResponse to them. Since I do not have any instance variable in the servlet class (I initiate action classes in doGet() method so the action class instance is thread safe), can I assume my application is thread safe and thus I can use ArrayList in my action classes without worrying about thread issue ?