当前分类: Java认证考试综合练习
问题:单选题以下列出的产生窗口监听器的步骤中,错误的是()A 在Windows操作系统中注册窗口监听器类B 由WindowAdapter类派生出窗口监听器类C 编写窗口事件处理函数D 将窗口监听器对象添加到框架中...
查看答案
问题:在Java中,负责对字节代码解释执行的是()...
问题:单选题现有如下五个声明: 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 UNIX user named Bob wants to replace his chess program with a new one,but he is hot sure where the old one is in stalled.Bob is currently able to run a Java chess program starting from his home directory/home/bobusingthecommand: java-classpath/test:/...
问题:已知数组array,其最后一个元素的下标是?() ...
问题:单选题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 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 TestApp{ public static void main() String[] ar...
问题:单选题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...
问题:问答题如何定义静态方法?静态方法有何特点?静态方法处理的域有什么要求?...
问题:public class Pet{ private String name; public Pet(){ S...
问题:以下关于File对象的描述中,错误的是()...
问题:下列哪个工具可以编译java源文件? () ...
问题:问答题说明抽象类和接口的异同。...
问题:单选题当动作监听器激发时,会调用什么函数?()A onActivated函数;B actionPerformed函数;C doAction函数;D checkActionOn函数;...
问题:实现了Set接口的类是哪项?() ...
问题:现有: class Test2 f public static void main (String [] ar...
问题:以下算术运算符中错误的是() ...
问题:单选题程序: class TestApp{ public static void main(String[] args){ System.out.println(multiply(2,3,4,5)); } public int multiply(int[] nums){ int result = 1; for(int x :nums) result *= x; return result; } } 程序运行后的输出是哪项?()A ...
问题:以下哪个组件不支持动作监听器?()...