PRO192_-_SU_2024_-_RE_2466.webp
B

PRO192_-_SU_2024_-_RE_2466.webp

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

Thông tin

Category
PRO192
Thêm bởi
bright_moon
Ngày thêm
Lượt xem
2,444
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom