PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

Answer (Choose 1 answer)
A. error
B. true false
C. Exception
D. false false
{
}


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));
}

Thông tin

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

Image metadata

Filename
PRO192_-_FA_2023_-_FE_1027.webp
File size
51.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom