单项选择题
已知Statement的对象stat,执行“select *from suser”的代码是()。
A.stat.execute(“select *from suser”);B.stat.executeQuery(“select *from suser”);C.stat.executeUpdate(“select *from suser”);D.stat.query(“select *from suser”);
单项选择题 如果在Swing组件上绘图,应重写的方法是()。
单项选择题 对于一个实现了ActionListener接口的对象myClass,要把动作事件监听器添加到一个名为bt的按钮中,以便myClass对象可以接收并处理动作事件,以下代码正确的是()。
单项选择题 每个事件对象都有的方法是()。