Java中的static修饰int值做全局变量与static修饰词初始化顺序

先看一道题 1 public class HasStatic{ 2 private static int x=100; 3 public static void main(String args[]){ 4 HasStatic hs1=new HasStatic(); 5 hs1.x++; 6 HasStatic hs2=new HasSta
相关文章
相关标签/搜索