皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
Java application中的主类需包含main方法,main方法的返回类型是( )
A.
float
B.
int
C.
double
D.
void
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】以下代码的输出是什么: public class Test { public static void main(String[] args) { Object o1 = new Object(); Object o2 = new Object(); System.out.print((o1 == o2) + " " + (o1.equals(o2))); } }
A.
false false
B.
true true
C.
false true
D.
true false
【单选题】guilty
A.
a. 灰色的
B.
a. 纯净的
C.
a. 内疚的
D.
a. 巨大的
【单选题】以下代码的输出是什么? public class Test { public static void main(String[] args) { new Person().printPerson(); new Student().printPerson(); } } class Student extends Person { @Override public String getInfo() {...
A.
Person Person
B.
Person Student
C.
Stduent Student
D.
Student Person
【单选题】guilty
A.
罪犯
B.
有罪的
C.
罪恶
D.
犯罪
【单选题】guilty
A.
a. 内疚的;有罪的
B.
a. 妒忌的
C.
a. 谦虚
D.
a. 明智的
【单选题】以下代码的输出是什么: public class Test { public static void main(String[] args) { int[] x = {120, 200, 016}; for (int i = 0; i < x.length; i++) System.out.print(x[i] + " " ); } }
A.
120 200 16
B.
120 200 14
C.
120 200 20
D.
016是编译错误。 它应该写为16。
【单选题】编译及运行以下代码,注释处填入下列选项的代码,哪个的输出是0 public class ZeroPrint{ public static void main(String argv[]){ int i =0; //Here } }
A.
System.out.println(i++);
B.
System.out.println(i+
C.
System.out.println(++i);
D.
System.out.println(--i);
【简答题】以下代码的输出结果是() public class Prac2 { public static void main(String[] args) { int a=20,b=67,c=-100,max; if(a>b) { max = a; }else if(b>=c) { max = b; }else { max = c; } System.out.println(max); } }
【单选题】以下程序代码的输出是 public classtest { public static void main (String args[]) { System.out.printIn (6 ^ 3); } }
A.
3
B.
5
C.
6
D.
11
【简答题】guilty
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题