【单选题】( 17 )下列程序的输出结果是 public class Test{ public static void main(String[] args){ int [] array={2,4,6,8,10} int size=6 int result=-1 try{ for{int i=0i if(array[i]==20) result=i } catch(ArithmeticException e...
【简答题】下列程序的输出结果是 public class E { public static void main (String args[ ]) { char c = '\0'; for(int i=1;i<=4;i++) { switch(i) { case 1: c='J' ; System.out.print(c); case 2: c='e' ; System.out.print(c); br...
【简答题】下列程序的输出结果是 public class E { public static void main (String []args) { int x = 1,y = 6; while (y-->0) { x--; } System.out.print("x="+x+",y="+y); } }