当前位置:首页 > 全部子站 > IT > 思科认证

Java认证模考试题(四

来源:长理培训发布时间:2017-12-19 10:48:54

 百度广告

Question: 21
outer: for(int i=0;i< 3; i++)

inner: for(int j=0;j< 2;j++)

{

if(j==1) continue outer;

System.out.println(j+ ?and ?+i);

}

B. 0 and 1

C. 0 and 2

D. 1 and 0

E. 1 and 1

F. 1 and 2

G. 2 and 0

H. 2 and 1

I. 2 and 2

Explanation: 

Correct Answer: A,B,C 21 of 60

Question: 22

switch (m)

{

case 0: System.out.println(Condition 0);

case 1: System.out.println(Condition 1);

case 2: System.out.println(Condition 2);

case 3: System.out.println(Condition 3);break;

default: System.out.println(Other Condition);

Which values of m will cause Condition 2 is output?

B. 1

C. 2

D. 3

E. 4

F. None

Explanation: 

Correct Answer: A,B,C 22 of 60

Question: 23
A. init()

B. start()

C. stop()

D. destroy()

Explanation: 

Correct Answer: B 23 of 60 |||

Question: 24
A. join()

B. resume()

C. notify()

D. notifyAll()

E. high priority thread is ready

Explanation: 

Correct Answer: C,D 24 of 60

Question: 25
A. start()

B. init()

C. run()

D. main()

E. synchronized()

Explanation: 

Correct Answer: C 25 of 60

Question: 26
A. native

B. static

C. synchronized

D. abstract

Explanation: 

Correct Answer: C 26 of 60

Question: 27
A. private

B. public

C. protected

D. protect

E. friend

Explanation: 

Correct Answer: A,B,C 27 of 60 |||

 Question: 28

If a member variable of a class can be accessible only by the same package, which modifier should be used?

B. public

C. protected

D. no modifier

E. final

Explanation:

No modifier is the default access level. The default modifier means to be accessible by the classes in the same package.

Correct Answer: D 28 of 60

责编:罗莉

发表评论(共0条评论)
请自觉遵守互联网相关政策法规,评论内容只代表网友观点,发表审核后显示!

国家电网校园招聘考试直播课程通关班

  • 讲师:刘萍萍 / 谢楠
  • 课时:160h
  • 价格 4580

特色双名师解密新课程高频考点,送国家电网教材讲义,助力一次通关

配套通关班送国网在线题库一套

课程专业名称
讲师
课时
查看课程

国家电网招聘考试录播视频课程

  • 讲师:崔莹莹 / 刘萍萍
  • 课时:180h
  • 价格 3580

特色解密新课程高频考点,免费学习,助力一次通关

配套全套国网视频课程免费学习

课程专业名称
讲师
课时
查看课程
在线题库
面授课程更多>>
图书商城更多>>
在线报名
  • 报考专业:
    *(必填)
  • 姓名:
    *(必填)
  • 手机号码:
    *(必填)
返回顶部