

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