多项选择题
Which two, independently, will allow Sub to compile?()
A.Change line 2 to:public int a;
B.Change line 2 to:protected int a;
C.Change line 13 to:public Sub(){this(5);}
D.Change line 13 to:public Sub(){super(5);}
E.Change line 13 to:public Sub(){super(a);}
相关考题
-
多项选择题
Which five methods,inserted independently at line 5,will compile?()
A.public int blipvert(int x){return 0;}
B.private int blipvert(int x){return 0;}
C.private int blipvert(long x){return 0;}
D.protected int blipvert(long x){return 0;}
E.protected long blipvert(long x){return 0;}
F.protected long blipvert(int x, int y){return 0;} -
单项选择题
What is the result?()
A.Compilation fails.
B.atom granite
C.granite granite
D.atom granite granite
E.An exception is thrown at runtime.
F.atom granite atom granite -
单项选择题
And the following five fragments: How many of the code fragments, inserted independently at line 12,compile?()
A.0
B.1
C.2
D.3
E.4
F.5
