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

后端 未结 0 1446
再見小時候
再見小時候 2021-02-11 12:19

In the following code:

class A {
    private int number;

    public void a() {
        number = 5;
    }

    public vo         


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