当前分类: Java认证考试综合练习
问题:单选题当动作监听器激发时,会调用什么函数?()A onActivated函数;B actionPerformed函数;C doAction函数;D checkActionOn函数;...
查看答案
问题:现有: class Test2 f public static void main (String [] ar...
问题:单选题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 ...
问题:单选题Java语言中常量的定义是哪项?()A public staticB public static finalC finalD public static abstract...
问题:填空题如果想把一个对象写入一个流,那么这个类就必须实现()接口 。...
问题:单选题现有如下五个声明: 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...
问题:将单选框放到面板中时,以下注意事项中哪条是错误的?() ...
问题:单选题现有: 1.class Over { 2.int dolt (long x) { return 3; } 3. } 4. 5. class Under extends Over { 6.//insert code here 7. } 和四个方法: short dolt (int y) { return 4; } int dolt(long Xr long y) { return 4; } private int ...
问题:单选题组件的getBounds()方法返回值的类型是哪项?()A DimensionB RectangleC PointD int[]...
问题:下列哪个组件会产生Action事件?() ...
问题:多选题下列哪些项是泛型的优点? ()A不用向下强制类型转换B类型安全C代码容易编写D运行速度快...
问题:单选题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...
问题:类 Student 中字段mark的缺省值是哪项?() Class Student{ String name; ...
问题:以下算术运算符中错误的是() ...
问题:以下字符串函数的描述中,错误的是()...
问题:public class Pet{ private String name; public Pet(){ S...
问题:单选题以下哪个组件不支持动作监听器?()A 文本框B 下拉框C 按钮D 列表框...
问题:单选题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...
问题:怎样使用匿名类的对象?...
问题:以下关于File对象的描述中,错误的是()...