问题:单选题当动作监听器激发时,会调用什么函数?()A onActivated函数;B actionPerformed函数;C doAction函数;D checkActionOn函数;...
查看答案
问题:输入流与输出流各有什么方法?...
问题:假设A有构造方法A (int a),则在类A的其他构造方法中调用该构造方法和语句格式应为()...
问题:单选题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 ...
问题:单选题JFrame的缺省布局管理器是()A BorderLayoutB FlowLayoutC GridLayoutD BoxLayout...
问题:以下哪个组件不支持动作监听器?()...
问题:现有: class Test2 f public static void main (String [] ar...
问题:框架中包括哪些窗格? ()...
问题:多选题关于Java中的继承,以下说法中正确的有()AJava支持单继承和多重继承BJava只支持单继承,不支持多重继承CJava中的类最多只有一个直接父类,或者没有父类DJava中的每个类都有一个直接父类,而且只有一个直接父类E子类只能继承父类的public,protected和同一个包中的package级的成员...
问题:单选题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 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...
问题:引用类型的数据字段的缺省值为()...
问题:11.rbo = new ReallyBigObject(); 12.//more code here 13.rbo =...
问题:单选题现有: class TestFoo f int x; String y; int getX() { return x; } String getY() {return y; } void setX (int x) { int Z=7: this.x=x; } 可以添加多少个修饰符来封装此类?()A 5B 4C 3D 2...
问题:以下关于File对象的描述中,错误的是()...
问题:public class Pet{ private String name; public Pet(){ S...
问题:以下算术运算符中错误的是() ...