Kizspy | Question: 20
(Choose 1 answer)
What is the output of the following Java program?
class A {
int i, j;
A() {
i = 1;
j = 2;
}
} public class Main {
A obj1 = new A();
public static void main(String args[]) {
A obj2 = new A();
System.out. println(obj1.equals(obj2));}
}
A. false
B. true
C. obj1.equals(obj2)
D. Runtime error
FUOVE