class Wrench2 {  int size;  public static void main(String [] args) {  Wrench2 w = new Wrench2();  w.size = 9;  Wrench2 w2 = go(w, w.size);  System.out.print(w2.size);  }  static Wrench2 go(Wrench2 wr, int s) {  s = 7;  return wr;  }  }  结果为:() 

A . 7 B . 9 C . 编译失败 D . 输出结果不可预料

时间:2022-10-29 01:29:40 所属题库:Java认证考试综合练习题库

相似题目