A. short B. Boolean C. unit D. float
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
A. In Java programming language only allows single inheritance. B. In Java programming language allows a class to implement only one interface. C. In Java programming language a class cannot extend a class and implement a interface together. D. In Java programming language single inheritance makes code more reliable.