does this public static field make this class a singleton?

后端 未结 0 1810
执念已碎
执念已碎 2020-12-22 09:57

is this a correct implementation of a singleton? if not why? I\'m very confused about this code:

public class A
{
    private A() { }
    public static readon         


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