单项选择题

class DemoApp{ 
public static void main(String[] args){ 
int x = 5; int y = ++x + x++; S
ystem.out.println(“y=”+y+”,x=”+x); 
} 
} 
以上程序运行后的输出结果是哪项?() 

A.y=10,x=5
B.y=11,x=6
C.y=12,x=7
D.y=11,x=7

相关考题