线程

1、假设test类运行于多线程环境下,那么关于A处的同步下面描述正确的是

A. test方法中必须增加synchronized
B. Test类为singleton时有必要增加synchronized
C. test方法中没有必要增加synchronized
D. Test类为singleton时也没有必要增加synchronized

详细解析跳转

原文地址:https://www.cnblogs.com/elian91/p/15429109.html