java200道选择题已做.docx

一 . 选择题〔 234〕 1.下面中哪两个可以在 A 的子类中使用: 〔 A,C〕 class A { protected int method1 (int a, int b) { return 0; } } A. public int method 1 (int a, int b) { return 0; } B. private int method1 (int a, int b) { return 0; } C. private int method1 (int a, long b) { return 0; } D. public short method1 (int a, int b) { return 0; } 2.Abstract method cannot be static. True or False ? (A) A .True B.False 3.What will be the output when you compile and execute the following program. class Base { void test() { System.out.println(Base.test()); } } public class Child extends Base { void test() { System.out

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档