PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
successful_man

PRO192_-_SU_2023_-_Block_5_-_FE_735.webp

(15)
Answer (Choose 1 answer)
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!
}
}

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");
System.out.println("Have a nice day!");
if(ob1==ob2) System.out.println("ob1==ob2");
What is the output?

Thông tin

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

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_FE_735.webp
File size
51.5 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom