【单选题】程序代码如下,请问会输出什么结果? 1. class A{ 2. int i; 3. public static A getInstance(){ 4. A a = new A(); 5. a.i = 2; 6. return a; 7. } 8.} 9. class Execute{ 10. public static void main (Stri...
【单选题】程序代码如下,请问会输出什么结果? 1. class A{ 2. int i; 3. public static A getInstance(){ 4. A a = new A(); 5. a.i = 2; 6. return a; 7. } 8.} 9. class Execute{ 10. public static void main (Stri...