Why is `synchronized (new Object()) {}` a no-op?

后端 未结 0 1712
旧时难觅i
旧时难觅i 2021-02-11 12:38

In the following code:

class A {
    private int number;

    public void a() {
        number = 5;
    }

    public vo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题