【单选题】有如下程序 public class Sun { public static void main (String args[ ]) { int a=2, b=1, c=2; if (a<B) if (b<0) if (c<0) c=0; else c++; System. out.println(C) ; } } 上述程序的运行结果是( )。
【单选题】有如下程序 public class Sun { public static void main (String args[ ]) { int x=0; int n=0; while (x<50) { x=(x+2)*(x+3); n=n+1; System.out.println (n+'和'+x); 上述程序的运行结果是( )。
【单选题】有如下程序 public class Sun { public static void main(String args[ ]) { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2: a++; b++; } System.out.println('a='+a+','+'b='+B) ; } } 该程序的输出结果是( )。
【单选题】有如下程序; public class MethTest { static int Varl=100; int Var2=200; public static void main(String args[]) { Varl=10; MethTest Obj1=new MethTest(); MethTest Obj2=new MethTest(); Obj1.Varl++; System.out....