单项选择题
A.button.enableActioinEvents(); B.button.addActionListener(anActionListener); C.button.enableEvents(true); D.button.enableEvents(AWTEvent.ACTION_EVENT_MASK);
在JAVA中,类Worker是类Person的子类,Worker的构造方法中有一句“super()“,该语句(...
单项选择题在JAVA中,类Worker是类Person的子类,Worker的构造方法中有一句“super()“,该语句()。
A.调用类Worker中定义的super()方法 B.调用类Person中定义的super()方法 C.调用类Person的构造函数 D.语法错误
JAVA中,使用()修饰符时,一个类能被同一包或不同包中的其他类访问。A.privateB.protected...
单项选择题JAVA中,使用()修饰符时,一个类能被同一包或不同包中的其他类访问。
A.private B.protected C.public D.friendly
在JAVA中,假设我们有一个实现ActionListener接口的类,以下方法,()能够为一个Button类注...
单项选择题在JAVA中,假设我们有一个实现ActionListener接口的类,以下方法,()能够为一个Button类注册这个类。
A.addListener() B.addActionListener() C.addButtonListener() D.setListener()