多项选择题
1) class Person { 2) public void printValue(int i, int j) {/*…*/ } 3) public void printValue(int i){/*...*/ } 4) } 5) public class Teacher extends Person { 6) public void printValue() {/*...*/ } 7) public void printValue(int i) {/*...*/} 8) public static void main(String args[]){ 9) Person t = new Teacher(); 10) t.printValue(10); 11) } 12) } Which method will the statement on line 10 call?()
A. on line 2
B. on line 3
C. on line 6
D. on line 7
点击查看答案&解析
相关考题
-
多项选择题
Whichofthefollowingstatementsaretrue?()
A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects match. -
多项选择题
WhicharenotJavakeywords?()
A. TRUE
B. sizeof
C. const
D. super
E. void -
单项选择题
Whichofthefollowingansweriscorrecttoexpressthevalue8inoctalnumber?()
A. 010
B. 0x10
C. 08
D. 0x8
