PRO192_-_REB5_-_FA_2023_1330.webp
lanhong87

PRO192_-_REB5_-_FA_2023_1330.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!
Exit 2

Thông tin

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

Image metadata

Filename
PRO192_-_REB5_-_FA_2023_1330.webp
File size
53.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom