单项选择题
Given
1. public class Foo {
2. public static void main (String [] args) }
3. try { return;}
4. finally { Syste.out.printIn (“Finally”);}
5. }
6. }
What is the result()?
A. The program runs and prints nothing.
B. The program runs and prints “Finally”.
C. The code comiles. But an exception is thrown at runtime.
D. The code will not compile because the catch block is missing.
相关考题
-
多项选择题
Given: 1. public interface Foo { 2. int k = 4: 3. } Which three are equivalent to line 2?()
A. final int k = 4:
B. public int k = 4:
C. static int k = 4:
D. private int k = 4:
E. abstract int k = 4:
F. volatile int k = 4:
G. transient int k = 4:
H. protected int k = 4: -
单项选择题
Which command line invocation will produce the output?()
A. java Test 2222
B. java Test 1234
C. java Test 4242
D. java Test 4321 -
单项选择题
Whatisthenumericalrangeofchar?()
A. 0…32767
B. 0…65535
C. –256…255
D. 32768…32767
E. Range is platform dependent.
