下列不能作为switch表达式参数的数据类型是:
A. int
B. char
C. long
D. short
下面说法正确的是
A. FileWriter类是Writer类的子类
B. FileWriter类是OutputStreamReader类的子类
C. FileWriter类是FileOutputStream类的子类
D. Wirter类是OutputStreamWriter类的子类
假设已经声明了一个类A的两个对象a1、a2,为了初始化a1和a2,下面语句正确的是:
A. a1, a2 = new A();
B. a1 ,a2 = new();
C. a1 = new(); a2 = new();
D. a1 = new A(); a2 = new A();
下面哪些是合法的抽象类定义
A. abstract A {abstract void method()}
B. class abstract B {abstract void method()}
C. abstract class C {abstract void method()}
D. abstract class D {abstract void method(){System.out.println(“d”)