单项选择题
下列代码段的输出结果为( )。
public class priority
public static void main(String args[ ])
int a=10,b=4,c=20,d=6;
System.out.println(a+c%B) ;
System.out.println(a++*b+c--D) ;
A.10 40
B.10 96
C.80 60
D.96 60
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下程序输出结果为( )。 class test 2 public static void main(String args[]) int n = 7; n<<=3; n=n&n+1|1n+2^n+3; n>>=2; System.out.println(n);
A.0
B.-1
C.14
D.64
点击查看答案&解析
单项选择题
有如下程序: public class MethTest static int Var1=100; int Var2=200; public static void main(String args[]) Var1=10; MethTest Obj1=new MethTest(); MethTest Obj2=new MethTest(); Obj1.Var1 ++; System.out.println(Obj1.Var1); Obj2.Var1 ++; System.out.println(Obj2.Var1); MethTest.Var1 ++; System.out.println(Obj1.Var1); Obj1.Var2 ++; System.out.println(Obj1.Var2); 0bj2.Var2 ++; System.out.println(Obj2.Var2); 程序的运行结果为( )。
A.11
12
13
201
201
B.101
102
103
201
201
C.11
12
13
201
202
D.10
10
10
201
201
点击查看答案&解析
相关试题
下列程序运行后的输出结果是( )。 publ...
下面程序输出的结果是什么 ( ) public...