单项选择题

下列代码执行之后,输出的结果为______。 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
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序段执行后,x5的结果是______。 public class ex42 { public static void main(String[] args) { int xl = 8; int x2 = 12; int x3=7; int x4; int x5; x4 = x1 > x2 x1 : x2+ x1; x5 = x4 > x3 x4 : x3; System.out.println(x5); } }
A.11
B.20
C.10
D.12
单项选择题
下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { String s1=new String( hello ); String s2=new String( hello ); System.out.print (s1==s2); System.out.print ( , ); System.out.println (s1.equals (s2)); } }
A.true, false
B.true, true
C.false, true
D.false, false
相关试题
  • 下面程序的执行的结果是______。 pu...
  • 下列程序的运行结果为______。 clas...
  • 给出下面程序: public class ex51 ...
  • 执行下列代码之后,输出的结果为_____...
  • 执行下列代码段之后,变量b的值为____...