关于以下程序代码的说明正确的是()
发布于 2022-03-03 16:19:52
关于以下程序代码的说明正确的是()
public class HasStatic {// 1 private static int x = 100// 2 public static void main(String args[]) {// 3 HasStatic hsl = new HasStatic()// 4 hsl.x++// 5 HasStatic hs2 = new HasStatic()// 6 hs2.x++// 7 hsl = new HasStatic()// 8 hsl.x++// 9 HasStatic.x--// 10 System.out.println(" x=" + x)// 11 } }
登录后免费查看答案
关注者
0
被浏览
19