[单选题]

下列代码中的内部类名是______。

import java.awt.event.*;

import javax.swing.*;

class Talkingclock{

public void start (int interval, final boolean beep){

A.ctionListener listener=new

A.ctionListener(){

public void actionPerformed (ActionEvent event) {

......

}

}

Timer t=new Timer(interval, listener);

t. start();

]

}

A.) Timer

B.) ActionListener

C.) listener

D.) 匿名

A.

B.

C.

D.

参考答案与解析: