当前位置:SCJP程序员认证考试题库

问题:

[单选]

package foo;  
import java.util.Vector;  
private class MyVector extends Vector { 
int i = 1;  
public MyVector() {  
i = 2; 
}  
}  
public class MyNewVector extends MyVector {  
public MyNewVector () {  
i = 4; 
 }  
public static void main (String args ) {  
 MyVector v = new MyNewVector(); 
 }  
}  
The file MyNewVector.java is shown in the exhibit.  What is the result?()

A .  Compilation will succeed.
B .  Compilation will fail at line 5.
C .  Compilation will fail at line 6.
D .  Compilation will fail at line 14.
E .  Compilation will fail at line 17.

简述刑事诉讼、民事诉讼和行政诉讼的证明对象有哪些? 简述单元教学和方案教学的差异。 生物膜 起升机构的制动器必须是()式的。 常开。 常闭。 附加生长

package foo;  
import java.util.Vector;  
private class MyVector extends Vector { 
int i = 1;  
public MyVector() {  
i = 2; 
}  
}  
public class MyNewVector extends MyVector {  
public MyNewVector () {  
i = 4; 
 }  
public static void main (String args ) {  
 MyVector v = new MyNewVector(); 
 }  
}  
The file MyNewVector.java is shown in the exhibit.  What is the result?()

参考答案:

  参考解析

本题暂无解析

在线 客服