下列程序的运行结果是______。 public static ArrayTest{ public static void main(String[] args){ int data[] [] = {{1,2,3,4,5},{11,22,33,44,55},{111,222,333, 444,555}}; for(int i=0;i< data.length;i++){ if(i%2==0) { System.out.println(data[i] [4]+" "); } } } }
A. 5 555
B. 5 55
C. 555
D. 55
下列选项中,能实现对父类的getSalary方法重写的是______。 class Employee{ public Double getSalary(){}; }
A. class Manager extends Employee{ public int getSalary(Double x){};}
B. class Manager extends Employee{ public Double getSalary(int x,int y){};}
C. class Manager extends Employee{ public Double getSalaryO{};}
D. class Manager extends Employee{ public int getSalary(int x,int y){};}
下列程序的运行结果是______。 public class Shape {public Shape(){ System.out.println("shape"); } } public class Circle extends Shape { public Circle(){ System.out.println("Circle"); } public static void main(String args[]) {Shape d = new Circle() } }
A. Shape
B. Circle
C. ShapeCircle
D. 程序有错误