检查如下代码:public class Quiz2_l{public static void main(String[] args) {int a = 8;int
检查如下代码:
public class Quiz2_l{
public static void main(String[] args) {
int a = 8;
int b = -8;
System.out.print(a<< 2、;
System.out.print("," + (b>>1、 );
}
}
下列哪条语句正确描述了程序在编译和运行时的行为?
A.编译成功,输出为“32,-4 ”
B. 编译成功,输出为“16,4 ”
C. 编译成功,输出为“32,2147483644”
D. 编译成功,输出为“16,2147483644”
E. 编泽器拒绝表达式 b>>,因为不能对一个负数应用>>操作符