Java类加载过程当中的一点小陷阱

0.问题阐述 最近看到一到面试题,答案让人非议所思。 代码java /** * 类的初始化测试 * @author Jason * */ public class Single { private static Single instance = new Single(); public static int count1; public static int count
相关文章
相关标签/搜索