11、java中常见线程不安全类

常见线程不安全: 1、StringBuilder(StringBuffer是线程安全的) 2、SimpleDateFormat(JodaTime是线程安全的,且推荐使用) 3、ArrayList、HashSet、HashMap等
相关文章
相关标签/搜索