MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program?class N { public int K; public int L; N() { K = 5; L = 6; } } class M extends N { int p; M() { super(); } } public class super_Example { public static void main(String args[]) { M object = new M(); System.out.println(object.K + " " + object.L); } } |
| A. | 5 6 |
| B. | 6 5 |
| C. | Compilation Error |
| D. | Runtime Error |
| E. | None of these |
| Answer» B. 6 5 | |