下面程序的输出是什么?请画出程序运行过程中变量和对象的关系示意图。 class A { int x, y; A(int a, int b) { x= a; y= b; } } public class Sample { public static void main(String[] args) { A pl, p2; p2 = new A(12, 15); p1 = p2; p2.x++; System.out.println("p1.x=" + p1 .x); } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Dr. Johnson was granted an honored title in ______ of his valuable work for the college.