当前分类: Java认证考试综合练习
问题:举例说明this关键字的作用。...
查看答案
问题:多选题以下的代码是如何实现事件处理过程的?() class HelllWordFrame_jButton4_actionAdapter implements ActionListener { HelloWorldFrame adaptee; HelloworldFrame_jButton4_actionAdapter(HelloWorldFrame adaptee){ this.adaptee=adaptee;} public void actionPerformed(Act...
问题:多选题窗口监听器有哪些特点?()A可以继承窗口适配器(WindowAdapter)类,并覆写其中需要用到的函数B窗口监听器所实现的接口是WindowListener,它有多?个函数C窗口监听器可以只实现WindowListener接口中的一两个函数D响应窗口打开,关闭,最小化成图标,由图标还原,激活,无效,最大化,还原,获取焦点,失去作业点等事件E仅在Windows操作系统下有效...
问题:已知: 的输出为()...
问题:说明覆盖和重载之间的区别。...
问题:以下算术运算符中错误的是() ...
问题:单选题class Test4 { public static void main(String [] args) { boolean x = true; boolean y = false; short z = 42; if((z++ = = 42) (y = true)) z++; if((x = false) || (++z = = 45)) z++; System.out.println("z = " + z); } } 结果为:()A z = 42B z ...
问题:单选题t 是一个合法的 Thread 对象的引用,并且 t 的合法 run() 方法如下: public void run() { System.out.print("go "); } 及: t.start(); t.start(); t.run(); 哪一个是结果?()A goB go goC go go goD go 之后跟着一个异常...
问题:以下关于File对象的描述中,错误的是()...
问题:单选题11.class Snoochy{ 12.Boochybooch; 13.public Snoochy(){booch=newBoochy(this);} 14.} 15. 16.class Boochy{ 17.Snoochy snooch; 18.public Boochy(Snoochys){snooch=s;} 19.} And the statements: 21.public static void main(String[]args){ 22.Snoochy snoog=new Sno...
问题:单选题当动作监听器激发时,会调用什么函数?()A onActivated函数;B actionPerformed函数;C doAction函数;D checkActionOn函数;...
问题:单选题class Order3 implements Runnable { public static void main(String [] args) { new Thread(new Order3()).start(); for(int x = 0; x 〈 10; x++) System.out.print("m"); } public void run() { for(int x = 0; x 〈 10; x++) { //insert code here System.out.p...
问题:单选题现有如下五个声明: Linel: int a_really_really_really_long_variable_name=5 ; Line2: int _hi=6; Line3: int big=Integer. getlnteger("7”); Line4:int $dollars=8; line5: int %opercent=9; 哪行无法通过编译?()A Line1B Line3C Line4D Line5...
问题:在Java中,负责对字节代码解释执行的是()...
问题:单选题public void testIfA(){ if(testIfB("True")){ System.out.println("True"); }else{ System.out.println("Nottrue"); } } public Boolean testIfB(Stringstr){ return Boolean.valueOf(str); } What is the result when method testIfA is invoked?()A TrueB NottrueC Ane...
问题:同一个包的子类能否访问父类的保护级成员变量?()...
问题:以下哪个组件不支持动作监听器?()...
问题:现有: class Test2 f public static void main (String [] ar...
问题:public class Pet{ private String name; public Pet(){ S...