当前分类: Java认证考试综合练习
问题:class Animal{ Animal getOne(){return new Animal();}} class...
查看答案
问题:单选题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...
问题:以下哪些接口是事件侦听器接口?()...
问题:对象间有哪三种关系?对象“班级”与对象“学生”是什么关系?对象“学生”与对象“大学生”是什么关系?...
问题:下列关于JDK、JRE和JVM的描述。哪项正确?() ...
问题:单选题现有如下五个声明: 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...
问题:单选题关于异常处理机制的叙述正确的是()。A catch部分捕捉到异常情况时,才会执行finally部分B 当try区段的程序发生异常时,才会执行finally部分C 当try区段不论程序是否发生错误及捕捉到异常情况,都会执行finally部分D 以上都是...
问题:以下关于File对象的描述中,错误的是()...
问题:单选题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 ...
问题:现有: class Test2 f public static void main (String [] ar...
问题:删除File实例所对应文件的方法是?() ...
问题:以下哪个组件不支持动作监听器?()...
问题:单选题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...
问题:单选题当动作监听器激发时,会调用什么函数?()A onActivated函数;B actionPerformed函数;C doAction函数;D checkActionOn函数;...
问题:现有: int x = reader.read(); 下面哪一项正确?() ...
问题:以下算术运算符中错误的是() ...
问题:public class Pet{ private String name; public Pet(){ S...
问题:构造函数的返回值类型为void...
问题:public class TestApp{ public int mymethod(){ try{ int ...
问题:单选题class Mineral { static String shiny() { return "1"; } } class Granite extends Mineral { public static void main(String [] args) { String s = shiny() + getShiny(); s = s + super.shiny(); System.out.println(s); } static String getShiny(...