PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

}
(Choose 1 answer)
Find the output of the below program?
class Animal {
int id;
public Animal() {}
Animal(int id) {
this.id = id;}
public class Test {
public static void main(String[] args) {
Animal a1 = new Animal (1001);
Animal a2 = new Animal(1001);Animal a3 = new Animal();
System.out.print(a1.equals(a2) + " ");
System.out.println(a2.equals(a3));
}
}
A. true false
B. error
C. false false
D. Exception

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
192.5 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom