PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp

(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
thanhhoa88
Ngày thêm
Lượt xem
6,649
Lượt bình luận
24
Rating
0.00 star(s) 0 đánh giá

Image metadata

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

Share this media

Back
Bên trên Bottom