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

public class Test{<br /> public static void main(String[]args){<br /> intx=5;<br /> boolean b1=true;<br /> boolean b2=false;<br /> if((x==4)&&!b2)<br /> System.out.print("l");<br /> System.out.print("2");<br /> if((b2=true)&&b1)<br /> System.out.print("3");<br /> }<br /> }<br /> What is the result?()

A、2

B、3

C、12

D、23

E、123

F、Compilation fails.

H、An exceptional ist hrown at runtime.

更多“ public class Test{<br /> public static void main(String[]args){<br /> intx=5;<br /> boolean b1=true;<br /> boolean b2=false;<br /> if((x==4)&&!b2)<br /> System.out.print("l");<br /> System.out.print("2");<br /> if((b2=true)&&b1)<br /> System.out.print("3");<br /> }<br /> }<br /> What is the result?()”相关的问题
第1题

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

点击查看答案
第3题

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

点击查看答案
第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、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;}  

点击查看答案
第10题

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

点击查看答案
客服
TOP

请使用微信扫码支付

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