当前分类: Java认证考试
问题:现有: class Banana2&en...
查看答案
问题:程序员已经创建了一个类,该类的实例可以用做Hashtable&#...
问题:public class Test { public static void aMethod() throws Exception { try { throw new Exception(); } finally { System.out.println(“finally”); } } public static void main(String args[]) { try { aMethod(); } catch (Exception e) { System.out.println...
问题:类的可访问性不影响类成员的可访问性...
问题:Which two can ...
问题:现有: class Waiting&en...
问题:文本框中显示的字符长度&可以显示的文本长度不同,一般后者远大于前者。...
问题:以后哪项是合法的数组声明?()...
问题:Java语言中表达式“11”+22的结果是哪项?() A、33B、1122C、22D、表达式错误...
问题:构造函数只能重载不能覆盖...
问题:现有: 1. interface Altitude { 2. //insert code here 3. } 和4个声明: int HIGH = 7; public int HIGH = 7; abstract int HIGH = 7; interface int HIGH = 7; 分别插入到第2行,有多少行可以编译?() A、 0B、 1C、 2D、 3E、 4...
问题:What does the ...
问题:表达式““.equals(null)的结果为true...
问题:You are assigned&ensp...
问题:Given a class Repetition: 1. package utils; 2. 3. public class Repetition { 4. public static String twice(String s) { return s + s; } 5. } and given another class Demo: 1. // insert code here 2. 3. public class Demo { 4. public static void main(S...
问题:interface Beta {} class Alpha implements Beta { String testIt() { return “Tested”; } } public class Main1 { static Beta getIt() { return new Alpha(); } public static void main( String[] args ) { Beta b = getIt(); System.out.println( b.testIt()...
问题:Which three form part of correct array declarations?() A、 public int a []B、 static int [] aC、 public [] int aD、 private int a [3]E、 private int [3] a []F、 public final int [] a...
问题:1. interface A { public void aMethod(); } 2. interface B { public void bMethod(); } 3. interface C extends A,B { public void cMethod(); } 4. class D implements B { 5. public void bMethod() { } 6. } 7. class E extends D implements C { 8. public void...
问题:现有: int x = reader.read(); 下面哪一项正确?() A、 阅读器可以是FileReader或者BufferedReaderB、 阅读器不是FileReader或者BufferedReader类型C、 阅读器可以是FileReader类型,但不能是BufferedReader类型D、 阅读器可以是BufferedReader类型,但不能是FileReader类型...
问题:You want a cla...