奥鹏在线答案
- 2024-03-05 [单选] 整型数据类型中,需要内存空间最少的是()
- 2024-03-05 [单选] Character流与Byte流的区别是()
- 2024-03-05 [单选] 类Test1定义如下:1.public class Test1{2. public float aMethod(float a,float b){ } 3. 4.} 将以下哪种方法插入行3是不合法的。( )
- 2024-03-05 [单选] 有以下程序片段,下列哪个选项不能插入到行1。( )1.2.public class Interesting{3.//do sth 4. }
- 2024-03-05 [单选] 给出下面代码: 1) class Parent { 2) private String name; 3) public Parent(){} 4) } 5) public class Child extends Parent { 6) private String department; 7) public Child() {} 8) public String getValue(){ return name; } 9) public static void main(String arg[]) { 10) Parent p = new Parent(); 11) } 12) } 那些行将引起错误?( )。。
- 2024-03-05 [单选] 类Teacher和Student是类Person的子类; Person p; Teacher t; Student s; //p, t and s are all non-null. if(t instanceof Person) { s = (Student)t; } 最后一句语句的结果是( )。。
- 2024-03-05 [单选] 对方法main的第1行定义正确的是( )。
- 2024-03-05 [单选] Java application中的主类需包含main方法,main方法的返回类型是什么?( )
- 2024-03-05 [单选] 对于下列代码: 1) class Person { 2) public void printValue(int i, int j) {//... } 3) public void printValue(int i){//... } 4) } 5) public class Teacher extends Person { 6) public void printValue() {//... } 7) public void printValue(int i) {//...} 8) public static void main(String args[]){ 9) Person t = new Teacher(); 10) t.printValue(10); 11) } 第10行语句将调用哪行语句??
- 2024-03-05 [单选] 给出下面代码: public class test{ static int a[] = new a[10]; public static void main(String args[]) { System.out.println(arr[10]); } } 那个选项是正确的?( )