0
1
2
3
第1题:
现有: 1. interface Animal f 2. void eat(); 3. } 4. 5. // insert code here 6. 7. public class HouseCat implements Feline { 8. public void eat() { } 9. } 和以下三个接口声明: interface Feline extends Animal ( ) interface Feline extends Animal {void eat(); } interface Feline extends Animal {void eat() { } } 分别插入到第5行,有多少行可以编译?
第2题:
1. public class A { 2. void A() { 3. System.out.println(“Class A”); 4. } 5. public static void main(String[] args) { 6. new A(); 7. } 8. } What is the result?()
第3题:
分析下列汉字音节结构。 1.摆 2.皇 3.卫 4.惘 5.情
第4题:
露地观赏植物可分1.()2.()3.()4.()5.().
第5题:
第6题:
doX();
X.doX();
x.X.doX();
x.X myX = new x.X(); myX.doX();
第7题:
-1
255
127
Compilation will fail.
Compilation will succeed but the program will throw an exception at line 4.
第8题:
0
1
2
3
第9题:
Class A
Compilation fails.
An exception is thrown at line 2.
An exception is thrown at line 6.
The code executes with no output.
第10题:
1
2
3
4
第11题:
3a行
3b行
3a行或3b行
既非3a,也非3b
第12题:
第13题:
1. public class Test { 2. public static void main (String args) { 3. unsigned byte b = 0; 4. b--; 5. 6. } 7. } What is the value of b at line 5?()
第14题:
常见的网上购物流程是()。
第15题:
观赏植物根据观赏部位分类可分为1.()2.()3.()4.()5.().
第16题:
1. interface TestA { String toString(); } 2. public class Test { 3. public static void main(String[] args) { 4. System.out.println(new TestA() { 5. public String toString() { return “test”; } 6. } 7. } 8. } What is the result?()
第17题:
代码通过编译
由于多个错误导致编译失败
由于第1行的错误导致编译失败
由于第6行的错误导致编译失败
第18题:
process(bytes);
BitUtils.process(bytes);
util.BitUtils.process(bytes);
SomeApp cannot use methods in BitUtils.
import util.BitUtils.*; process(bytes);
第19题:
Value is: 8
Compilation fails.
Value is: 12
Value is: -12
The code runs with no output.
An exception is thrown at runtime.
第20题:
The application will crash.
The code on line 29 will be executed.
The code on line 5 of class A will execute.
The code on line 5 of class B will execute.
The exception will be propagated back to line 27.
第21题:
0
1
2
3
第22题:
0
1
2
3
第23题:
第24题: