相关题目
抛出异常,使用关键字:
已知:
class A {
public final void m() {
System.out.println(“A.m”);
}
}
public class B extends A {
public void m() {
System.out.println(“B.m”);
super.m();
}
public static void main(String [] args) {
new B().m();
}
}
那么结果为?
处理按钮点击事件的类需要实现哪个接口:
接口中的成员变量被隐含地声明为:
鼠标在窗口中移动时,产生的事件是:
Component 类中用于刷新组件的方法是:
若变量a 是String 类型的数据,那么表达式(a+a)的类型是:
下列代码的编译或执行结果是:
public class MyVal {
public static void main(String[] args) {
MyVal m = new MyVal();
m.aMethod();
}
public void aMethod(){
boolean [] b = new Boolean [5];
System.out.println(b[0]);
}
}
下列代码的执行结果是:
int length = "Hello".length();
System.out.println(length);
下列变量的定义中,错误的是:
