s@lm@n
Oracle
Exam 1z0-808
Java SE 8 Programmer I
[ Total Questions: 236 ]
Question No : 1
Given:
What is the result?
A. hEllOjAvA!
B. Hello java!
C. Out of limits
hEllOjAvA!
D. Out of limits
Answer: C
Question No : 2
Given the code fragment:
Which code fragment, when inserted at line 3, enables the code to print 10:20?
2
A. int[] array n= new int[2];
B. int[] array;
array = int[2];
C. int array = new int[2];
D. int array [2] ;
Answer: A
Question No : 3
Given:
What is the result?
A. 3 4 5 6
B. 3 4 3 6
C. 5 4 5 6
D. 3 6 4 6
Answer: C
3
Question No : 4
Given:
What is result?
A. Successful
B. Unsuccessful
C. Compilation fails
D. An exception is thrown at runtime
Answer: C
Question No : 5
Given:
class Sports {
int num_players;
String name, ground_condition;
Sports(int np, String sname, String sground){
num_players = np;
name = sname;
4
ground_condition = sground;
}
}
class Cricket extends Sports {
int num_umpires;
int num_substitutes;
Which code fragment can be inserted at line //insert code here to enable the code to
compile?
A. Cricket() {
super(11, Cricket, Condidtion OK);
num_umpires =3;
num_substitutes=2;
}
B. Cricket() {
super.ground_condition = Condition OK;
=Cricket;
super.num_players = 11;
num_umpires =3;
num_substitutes=2;
}
C. Cricket() {
this(3,2);
super(11, Cricket, Condidtion OK);
}
Cricket(int nu, ns) {
this.num_umpires =nu;
this.num_substitutes=ns;
}
D. Cricket() {
this.num_umpires =3;
this.num_substitutes=2;
super(11, Cricket, Condidtion OK);
}
Answer: A
Explanation:
Incorrect:
not C, not
您可能关注的文档
- IP网络技术综合实训HCNP-IENP中文实验指导书-封面.pdf
- IP网络技术综合实训HCNP-IERN中文教材-封面.pdf
- IP网络技术综合实训HCNP-IESN中文教材-封面.pdf
- Java程序设计Java开发环境和程序设计初步课程导学1.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术W7302VITEK全自动微生物生化鉴定和药敏测试系统、W7302VITEK全自动微生物生化鉴定和药敏测试系统WB09VITEK2Systems软件中文说明书.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示方晓玲作业展示.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示黄伊宁作业展示.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示李璐杭作业展示.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示林梦佳作业展示.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示沈明珠作业展示.pdf
- K210食品微生物检验技术、K209农产品微生物检验技术学生作业展示、学生作业展示俞盼凤作业展示.pdf
原创力文档

文档评论(0)