单项选择题
执行下列程序段之后,输出的结果为______。 public class ex41 { public static void main(string[] args) { int x=15; byte y=1; x>>=y++; System.out.println(x); } }
- A.3
B.7
C.14
D.10
点击查看答案
相关考题
-
单项选择题
假设有单精度浮点数x和y,x为正有限值,y为正无限值,下列说法中正确的是 ______。
A.x/y为NaN
B.x/y为负无限
C.x/y为正无限
D.x/y为0.0 -
单项选择题
设x=1, y=2, z=3, 则表达式y+=Z--/++X执行后,主的值是______。
A.3
B.4
C.3.5
D.5 -
单项选择题
下列代码的执行结果是______。 public class ex53 { public static void main (String args [] ) { float t=9.of; int q=5; System.out.println ((t++) * (--q)); } }
A.40
B.40.0
C.36
D.36.0