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