摘要: public class StopThread { // 静态字段的读写不必须要同步才能生效,尽管读写是原子的(atom) private static boolean stopRequested; /** * 对静态共享字段的写进行同步 */ private static synchronized void requestStop(... 阅读全文
posted @ 2017-08-10 16:38 FrankYou 阅读(1191) 评论(0) 推荐(0)
摘要: IllegalArgumentException 非 null 的参数值不正确 IllegalStateException 对于方法调用而言,对象状态不合适 NullPointException 参数值为null(空指针) IndexOutOfBoundsException 下标参数值越界 Conc 阅读全文
posted @ 2017-08-10 14:16 FrankYou 阅读(1950) 评论(0) 推荐(0)