PRO192_-_SP_2023_-_BL5_-_FE_118.webp
hoangduc2001

PRO192_-_SP_2023_-_BL5_-_FE_118.webp

Multiple Choices
(Choose 1 answer)
public class Test{
public static void main(String[] args){
Object ob1= new Object();
Object ob2= ob1;
if(ob1.equals(ob2)) System.out.println("ob1 equals ob2");
if(ob1==ob2) System.out.println("ob1==ob2");
System.out.println("Have a nice day!");
}
}
What is the output?
A. ob1 equals ob2
ob1==ob2
Have a nice day!
B. ob1 equals ob2 Have a nice day!
C. ob1==ob2
Have a nice day!
D. Have a nice day!

Thông tin

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

Share this media

Back
Bên trên Bottom