试题详情
单项选择题1. package foo; 2.  3. import java.util.Vector; 4.  5. protected class MyVector Vector { 6. init i = 1; 7. public MyVector() { 8. i = 2; 9. } 10. } 11.  12. public class MyNewVector extends MyVector { 13. public MyNewVector() { 14. i = 4; 15. } 16. public static void main(String args[]) { 17. MyVector v = new MyNewVector(); 18. } 19. } What is the result?()  

A、 Compilation succeeds.

B、 Compilation fails because of an error at line 5.

C、 Compilation fails because of an error at line 6.

D、 Compilation fails because of an error at line 14.

E、 Compilation fails because of an error at line 17.

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题