- 1、本文档共90页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
1
JAVASE 部分
1、Choose the three valid identifiers from those listed below. (Choose
three)?
A. IDoLikeTheLongNameClass
B. $byte
C. const
D. _ok
E. 3_case
答:ABD
2、Which of the following lines of code will compile without error (Choose
two)?
A.
int i=0;
if (i) {
System.out.println(“Hi”);
}
B.
boolean b=true;
boolean b2=true;
if(b==b2) {
System.out.println(“So true”);
}
C.
int i=1;
int j=2;
if(i==1|| j==2)
System.out.println(“OK”);
D.
int i=1;
int j=2;
if (i==1 | j==2)
System.out.println(“OK”);
答:BC
3、Which two demonstrate a has a relationship(Choose two)?
A. public interface Person { }
public class Employee extends Person{ }
B. public interface Shape { }
public interface Rectandle extends Shape { }
C. public interface Colorable { }
public class Shape implements Colorable
{ }
D. public class Species{ }
Copyright Tarena Corporation,2009.All rights reserved
2
public class Animal{private Species species;}
E. interface Component{ }
class Container implements Component{
private Component[] children;
}
答:DE
4、What will happen when you attempt to compile and run the following code?
public class Static{
static {
int x = 5;
}
static int x,y;
public static void main(String args[]){
x-- ;
myMethod();
System.out.println(x + y + ++x);
}
public static void myMethod(){
y = x+++++x;
}
}
A.compiletime error
B.prints: 1
C.prints: 2
D.prints: 3
E.prints: 7
F.prints: 8
答:D
5 、What is the correct ordering for the import, class and package
declarations when found in a single file?
A. package, import, class
B. class, import, package
C. import, package, class
D. package, class, import
答:A
6、What will happen when you attempt to compile and run the following code.
您可能关注的文档
- 艾尔肯.赛买提 搜索引擎发展历史研究.doc
- 艾斯哲学 第一卷 绝对运动主义.ppt
- 高等化工热力学-第6章05436.ppt
- 高等结构动力学1.pdf
- 补充1 搜索引擎.ppt
- 补充——10章资本市场均衡理论.ppt
- 补充教材5 搜索引擎的“盲区”.doc
- 高二化学理科实验班第二节 合成材料.ppt
- 高二--运动学问题.doc
- 高二哲学运动规律 使用1.doc
- 2025江浙沪居民睡眠健康小调研报告.pdf
- 毕业论文的开题报告范文.docx
- 团委活动方案(拓展).docx
- 汽车智能驾驶行业深度报告:端到端与AI共振,智驾平权开启新时代.pdf
- 小核酸行业深度:技术平台和适应症不断验证,迎来销售和临床密集兑现期-华福证券-2025.3.31-65页.docx
- 医药生物行业医疗AI专题报告二多组学篇AI技术驱动精准诊断实现重要突破-25031440页.docx
- CXO行业系列报告三寒冬已过行业需求逐步回暖-25031430页.docx
- 全国租赁市场报告2025年3月_可搜索.pdf
- 玩具行业“情绪经济”专题:创新玩法+IP赋能,重新定义玩具-华鑫证券-2025.docx
- 医疗保健行业PCAB抑制剂药物深度报告抑酸药物市场空间广阔PCAB抑制剂大有可为-25.pdf
文档评论(0)