题目:试分析下列代码的运行结果。 class AA{ int x=1; static int y=2; void mm( ){x=2;} static void nn( ){y=3;} } public class Test11{ public static void main(String args[ ]){ AA a=new AA(); System.out.printf("%d",a.x); System.out.println(a.y); a.mm(); a.nn(); System.out.printf("%d",a.x); System.out.println(a.y); AA c=new AA( ); System.out.printf("%d",c.x); System.out.println(c.y); } }
答案:评论后可见此内容