2014年Java认证SCJP模拟习题:SCJPMockExam(2)
日期:2013-10-31 14:09
by calling static member methods of each other's classes.
Q7
Given the following code, which statements are true?
class A {
int value1;
}
class B extends A {
int value2;
}
1) Class A extends class B.
2) Class B is the superclass of class A.
3) Class A inherits from class B.
4) Class B is a subclass of class A.
5) Objects of class A have a member variable named value2.
Q8
If this source code is contained in a file called SmallProg.java, what command should be used to compi
2/5 下一页 上一页 首页 尾页
返回
刷新
WAP首页
网页版
登录
05/15 06:23