当前分类: Java认证考试
问题:public class Test { public static void main(String args[]) { class Foo { public int i = 3; } Object o = (Object)new Foo(); Foo foo = (Foo)o; System.out.println(“i = “ + foo.i); } } What is the result?() A、 i = 3B、 Compilation fails.C、 A ClassCas...
查看答案
问题:You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the tag that requires the page name tobe specified dynamically when the header is impo...
问题:Which of the f...
问题:1. public class Test { 2. public static String output =””; 3. 4. public static void foo(int i) { 5. try { 6. if(i==1) { 7. throw new Exception(); 8. } 9. output += “1”; 10. } 11. catch(Exception e) { 12. output += “2”; 13. return; 14. } 15. finally { 16....
问题:现有: public class Tester { public static void main (String[] args) { intx-5; Integer xl=x; Integer x2=x; int x3=new Integer(5); system..ut.print(x1.equals(x)); system..ut.print(xl==x); system..ut.print(x2.equals(xl)); system..ut.p...
问题:关于红黑树和AVL树,以下哪种说法不正确()。A、两者都属于自平衡二叉树B、两者查找,插入,删除的时间复杂度相同C、包含n个内部节点的红黑树的高度是O(log(n))D、JDK的TreeMap是一个AVL的实现...
问题:下列哪项是String的字面量?() A、“Hello”B、‘world’C、/u2345D、new String(“good”)...
问题:A developer is d...
问题:当动作监听器激发时,会调用什么函数?()...
问题:Java中方法绑定有哪些形式?()A、编译时刻绑定B、运行时刻绑定C、静态绑定D、私有绑定...
问题:哪两个是同步的?()A、 java.util.TreeSetB、 java.util.HashtableC、 java.util.VectorD、 java.util.LinkedList...
问题:现有: 1. class Book { 2. private final void read() { System.out.print("book "); } 3. } 4. class Page extends Book { 5. public static void main(String [] args) { 6. // insert code here 7. } 8. private final void read() { Syst...
问题:Which statements concerning the event model of the AWT are true?() A、At most one listener of each type can be registered with a component.B、Mouse motion listeners can be registered on a List instance.C、There exists a class named ContainerEvent in package...
问题:结构型模式中最体现扩展性的模式是()。...
问题:能够遍历泛型List〈Integer〉 al中的所有...
问题:以下有关接口的叙述错误的是哪项?() ...
问题:说明实例成员和静态成员之间的差别。...
问题:Which two demonstrat...
问题:HTTP中的POST和GET在下列哪些方面有区别()。...
问题:线程由以下哪些部分组成?() A、虚拟的CPUB、CPU执行的代码C、支持代码工作的数据D、进程...