“阅读下面程序 class ex3124 { public static void main(String [] args) { boolean b=true; if(b){ int i=1;} else { int i=2;}System.out.println(i);}} 现在想先编译再运行该程序,结果是()
A.运行出错
B.编译出错
C.2
D.1
答案: <查看本题扣1积分>
查看答案
答案不对?请尝试站内搜索