Java认证
2014年Java认证SCJP模拟习题:SCJPMockExam(4)
日期:2013-10-31 14:12
System.out.println(i);
}
}
class Extension extends Base {
Extension() {
add(2);
}
void add(int v) {
i += v*2;
}
}
public class Qd073 {
public static void main(String args[]) {
bogo(new Extension());
}
static void bogo(Base b) {
b.add(8);
b.print();
}
}

1) 9
2) 18
3) 20
4) 21
5) 22
Q23
Which lines of code are valid declarations of a native method when occurring within the declaration of the following class?

public class Qf575 {
// insert declaration of a native me

2/5 下一页 上一页 首页 尾页

Java认证


返回 刷新 WAP首页 网页版 登录
05/14 04:01