int x = 1, y =6;  while (y--) {  x++;  }  System.out.println(“x =” + x + “y =” +y); What is the result?()  

A .  x = 6 y = 0 B .  x = 7 y = 0 C .  x = 6 y = -1 D .  x = 7 y = -1 E .  Compilation fails.

时间:2022-10-22 00:40:16 所属题库:SCJP程序员认证考试题库

相似题目