多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

1.public class Test{ 2.int x=12; 3.public void method(intx){ 4.x+=x; 5.System.out.println(x); 6.} 7.} Given: 34.Test t=new Test(); 35.t.method(5); What is the output from line 5 of the Test class?()

  • A、5
  • B、10
  • C、12
  • D、17
  • E、24
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题