搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

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

A、5

B、10

C、12

D、17

E、24

更多“ 1.public class Test{<br /> 2.int x=12;<br /> 3.public void method(intx){<br /> 4.x+=x;<br /> 5.System.out.println(x);<br /> 6.}<br /> 7.}<br /> Given:<br /> 34.Test t=new Test();<br /> 35.t.method(5);<br /> What is the output from line 5 of the Test class?()”相关的问题
第1题

A、 Test()  B、 Test(void)  C、 publicTest()  D、 publicTest(void)  E、 public void Test()  

点击查看答案
第2题

A、any class  B、only the Target class  C、any class in the test package  D、any class that extends Target  

点击查看答案
第3题

A、public float aMethod(float a, float b,float c){ return 0;}  B、public float aMethod(float c,float d){ return 0;}  C、public int aMethod(int a, int b){ return 0;}  D、private float aMethod(int a,int b,int c){ return 0;}  

点击查看答案
第4题

A、 x = 0  B、 x = 42  C、 Compilation fails because of an error in line 2 of classTest2.  D、 Compilation fails because of an error in line 3 of classTest1.  E、 Compilation fails because of an error in line 4 of classTest2.  

点击查看答案
第6题

A、any class  B、only the Target class  C、any class in the test package  D、any class that extends Target  

点击查看答案
第8题

A、 java test  B、 java -ea test  C、 java test file1  D、 java -ea test file1  E、 java -ea test file1 file2  F、 java -ea:testtest file1  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服