试题详情
单项选择题 现有: 1. class Wrench f 2.public static void main(String [] args) { 3.Wrench w=new Wrench( ); Wrench w2=new Wrench( ); 4. w2=go (w, w2); 5.System.out.print (w2==w); 6. } 7.static Wrench go (Wrench wrl, Wrench wr2) { 8.Wrench wr3=wrl; wrl=wr2; wr2=wr3; 9. return wr3; 10. } 11. } 结果是什么?()

A、false

B、true

C、编译失败

D、运行的时候有异常抛出

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

热门试题