which one is thread safe & why? ArrayList,Vector,Map,Table
Printable View
which one is thread safe & why? ArrayList,Vector,Map,Table
[QUOTE=mnj_rt]which one is thread safe & why? ArrayList,Vector,Map,Table[/QUOTE]
Vectors are intended to be thread safe, ArrayLists are not
I am not sure about Map and table... but I think they are not thread safe.. some one correct me if I am wrong...
Thread safety is not something absolute and totally guaranteed no
matter how you use a class