问答题 读下面程序,给出最后屏幕输出结果。public class ShiftTest{public static void main(String [] args){ int x=0x80000000;int y=0x80000000; x=x>>1; y=y>>>1; System.out.println(“0x80000000>>1 = ” + Integer.toHexString(x)); System.out.println(“0x

成人教育远程网络教育函授网上考试【Java程序设计】课程在线考试模拟试题正确答案解析,免费查看【Java程序设计】作业答案。
题目内容:
读下面程序,给出最后屏幕输出结果。public class ShiftTest{public static void main(String [] args){       int x=0x80000000;             int y=0x80000000;       x=x>>1;                             y=y>>>1;      System.out.println(“0x80000000>>1 = ” + Integer.toHexString(x));      System.out.println(“0x80000000>>>1 = ” + Integer.toHexString(y));} }
参考答案价值:100%
已邀请:
参考答案要查看答案请先登录注册

要回复问题请先登录注册