1. 线程不安全的类
ArrayList 、LinkedList 、HashMap 、TreeMap 、HashSet 、TreeSet 、StringBuilder
2. 线程安全的类 ( 使用了synchronized )
Vector (
不推荐使用) 、HashTable (不推荐使用) 、ConcurrentHashMap 、StringBuffer 、
String( 没有使用synchronized )
1. 线程不安全的类