试题详情
单项选择题 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、输出结果不可预料

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题