

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class A { int i; int j; A() { i = 1; j = 2; } } class Output { public static void main(String args[]) { A obj1 = new A(); A obj2 = new A(); System.out.print(obj1.equals(obj2)); } } |
A. | false |
B. | true |
C. | 1 |
D. | Compilation Error |
Answer» B. true | |