题目内容 (请给出正确答案)
[主观题]

Which is the return type of the method main()? A.int B.void C.Boolean

Which is the return type of the method main()?

A.int B.void

C.Boolean D.static

提问人:网友anonymity 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“Which is the return type of th…”相关的问题
第1题
To apply for a passport, you need to prepare the following documents: ID card, certificate of residence and photos
点击查看答案
第2题
By no means would people turn ________ their motherland.
点击查看答案
第3题
Which of the following rhetoric device is used in the sentence “Peace is essential for progress, but progress is no less essential for peace”?

A、Metaphor

B、Anti-thesis

C、Repetition

D、Alliteration

点击查看答案
第4题
Which are not Java primitive types?

A.short               B.Boolean

C.unit               D.float

点击查看答案
第5题
Given the following code:

1)class Person {

2) public void printValue(int i, int j) {/*…*/ }

3) public void printValue(int i) {/*…*/

4) }

5) public class Teacher extends Person {

6) public void printValue() {/*…*/ }

7) public void printValue(int i) {/*…*/}

8) public static void main(String args[]) {

9) Person t = new Teacher();

10) t.printValue(10) ;

11)}

12)}

Which method will the statement on line 10 call?

A.on line 2            B.on line 3

C.on line 6            D.on line 7

点击查看答案
第6题
Which statements about inheritance are true?

A.In Java programming language only allows single inheritance

B.In Java programming language allows a class to implement only one interface

C.In Java programming language a class cannot extend a class and implement a interfacetogether

D.In Java programming language single inheritance makes code more reliable

点击查看答案
第7题
Which of the following statements are true?

A.The equals() method determines if reference values refer to the same object

B.The == operator determines if the contents and type of two separate objects match

C.The equals() method returns true only when the contents of two objects match

D.The class File overrides equals() to return true if the contents and type of two separateobjects match

点击查看答案
第8题
Which are not Java keywords?

A.TRUE               B.sizeof

C.const               D.super

E.void

点击查看答案
第9题
Given the following code fragment:

1)public void create() {

2) Vector myVect;

3) myVect = new Vector() ;

4) }

Which of the following statements are true?

A.The declaration on line 2 does not allocate memory space for the variable myVect

B.The declaration on line 2 allocates memory space for a reference to a Vector object

C.The statement on line 2 creates an object of class Vector

D.The statement on line 3 creates an object of class Vector

E.The statement on line 3 allocates memory space for an object of class Vector

点击查看答案
第10题
Which are syntactically valid statement at//point x?

class Person {

private int a;

public int change(int m) { return m; }

}

public class Teacher extends Person {

public int b;

public static void main(String arg[]) {

Person p = new Person() ;

Teacher t = new Teacher();

int i ;

// point x

}

}

A.i=m;            B.i=b;

C.i = p.a;             D.i = p.change(30);

E.i = t.b;

点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信