问题 更新时间2023/4/3 12:59:00 请说出下面程序的运行结果 public static void main(String[] args){ int a=2147483647; //int能表示的最大整数是2147483647 int x=1; long y=1; int r1=a+x; long r2=a+y; System.out.print("r1:"+r1); System.out.print("r2:"+r2); } 答案 登录 注册 正确答案为: -2147483648 , 2147483648 出自:石家庄铁道大学 >> 石家庄铁道大学面向对象程序设计