下面代码中的内部类名是:
import java.awt*;
import javax.swing.*;
class TalkingClock {
public static void main(int interval,final boolean beep) {
ActionListener listener = new ActionListener(){
public void actionPerformed(ActionEvent event){
............
}
}
Timer t =
欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web
下面代码中的内部类名是:
import java.awt*;
import javax.swing.*;
class TalkingClock {
public static void main(int interval,final boolean beep) {
ActionListener listener = new ActionListener(){
public void actionPerformed(ActionEvent event){
............
}
}
Timer t = new Timer(interval,listener);
t.start();
}
}
A.Timer
B.ActionListener
C.listener
D.匿名
正确答案D
×
提示:小程序已经收录此题,请在小程序查看名师解析。翰林刷小程序提供搜题,刷题,助你轻松通过考试