单选题 下列程序的运行结果是______。
public class Test {
public static void main (String[] args) {
int x=3, y=4, z=5;
if (x>3) {
if (y<2)
System.out.print ("show one");
else
System.out.print ("show two");
}
else{
if (z>4)
System.out.print ("show three");
else
System.out.print ("show four");
}
}
}
  • A.show one
  • B.show two
  • C.show three
  • D.show four
【正确答案】 C
【答案解析】[解析] 本题考查if判断的相关知识。本题中x=3,z=5,因此结果为show three。