预测下面代码段的输出 double a =10.5; int b=(double)a; system .out.println(b);
10
不会输出并且编译失败 除非把int b = (double)a; 改为int b = (int) a; 才可以运行 输出10