单项选择题
下列内部类的正确用途是
btnn.addActionListener(new //注册监听器
ActionListener()
public void actionPerformed(ActionEvent event)
String s=input.getText();
output.setText("Hello"+s+",Welcome You!");
);
A.用于访问外部类的数据
B.用于进行事件处理
C.隐藏起来不被同一包中的其他类所见
D.生成事件适配器
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
某二叉树中度为2的结点有18个,则该二叉树中有______个叶子结点。
点击查看答案&解析
单项选择题
在下面附属类方法中的下划线处应填入的正确参数是 public void writeData(______)throws IOException GregorianCalendar calendar=new GregorianCalendar(); calendar.setTime(hireDay); out.println(name+ | +salary+ | +calendar.get(Calendar.YEAR)+ | +(calendar.get(Calendar.MQNTH)+1)+ | +calendar.get(Calendar.DAY_OF_MONTH));
A.Employee[]e
B."employee.dat"
C.PrintWriter out
D.BufferedWriter
点击查看答案&解析
相关试题
请写出下面程序的运行结果: public clas...
所有由Container派生的类称为______...
下面程序段是创建一个Date类的对象并把它串...
接口可以看作是仅容纳______、常量,...
在运行时,由java解释器自动引入,而不用im...