

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
class N { int K; int L; N() { K = 1; L = 2; } } public class Result { public static void main(String args[]) { N obj = new N(); System.out.print(obj.toString()); } } |
A. | false |
B. | Compilation Error |
C. | true |
D. | String associated with obj |
E. | None of these |
Answer» E. None of these | |