单项选择题

执行下列代码段之后,变量b的值为______。 public class ex40 { public static void main(String[] args) { byte x=5; byte y=5; byte c=10; boolean b; b-c<x<<y; System.out.println (b); } }

A.1
B.0
C.false
D.true
<上一题 目录 下一题>
热门 试题

单项选择题
下列代码执行之后,输出的结果为______。 public class ex38 { public static void main(String[] args) { int x=12; int m=11; int y=13; int temp=x>yx:y; temp=temp>mtemp:m; System.out.println (temp); } }
A.1
B.12
C.13
D.11
单项选择题
下列代码执行之后,输出的结果为______。 public class ex34 { public static void main(String[] args) { byte a=-128; byte b=(a|127)>0(byte)(~a>>128:(byte)(~a<<128); System. out. Println(b); } }
A.-128
B.128
C.127
D.-127
相关试题
  • 下面程序的执行的结果是______。 pu...
  • 下列程序的运行结果为______。 clas...
  • 给出下面程序: public class ex51 ...
  • 执行下列代码之后,输出的结果为_____...