单项选择题

Given:
1. abstract class Vibrate {
2. static String s = "-";
3. Vibrate() {s += "v"; }
4. }
5. public class Echo extends Vibrate {
6. Echo() {this(7); s += "e"; }
7. Echo(int x) {s += "e2"; }
8. public static void main(String[] args) {
9. System.out.print("made " + s + " ");
10. }
11. static {
12. Echo e = new Echo();
13. System.out.print("block " + s + " ");
14. } }
What is the result

A.made-ve2e
B.block-ee2v
C.block-ve2e
D.made-eve2 block-eve2
E.made-ve2e block-ve2e
F.block-ve2emade-ve2e
G.block-ve2emade-ve2eve2e
H.Compilation fails
题目列表

你可能感兴趣的试题

微信扫码免费搜题