共 3 篇文章 |
|
The class will not compile The compiler reports and error at line 2 The compiler reports an error at line 9 The value 10 is one of the elements printed to the standard output The class compiles but generates a runtime error.Which of the following can be used to define a constructor for this class:public void Test() {... 阅1006 转5 评0 公众公开 05-11-02 14:48 |
public class MyClass {public static void main(String arguments[]){public class MyClass{static int i;public class Q {public static void main(String argv[]){int anar[]= new int[]{1,2,3};public class Q {public static void main(String argv[]){int anar[]= new int[5];a. private class MyClass extends Objectb. class myclass e... 阅1341 转6 评0 公众公开 05-11-02 14:47 |
a)class B implements A { int method1() { } int method2() { }}b)class B { int method1(int i) { } int method2(int j) { }}c)class B implements A { int method1(int i) { } int method2(int j) { }}d)class B extends A { int method1(int i) { } int method2(int j) { }}e)class B implements A { int method2(int j) { } int method1(i... 阅1296 转4 评0 公众公开 05-11-02 14:43 |