PRO192_-_SP_2023_-_BL5_-_FE_118.webp
hoangduc2001

PRO192_-_SP_2023_-_BL5_-_FE_118.webp

Multiple Choices
Answer (Choose 1 answer)
What happens when you try to compile and run the following program?
public class Main {
public static void main(String argv[]){
String s1 = "HEY":
String s2 = new String(new char[]['H','E','Y'});
if(s1.equals(s2))
System.out.println("OK");else
System.out.println("NOT OK");
System.out.println();
}
A. OK
B. NOT OK
C. OK NOT OK
D. The program has a compile error.

Thông tin

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

Share this media

Back
Bên trên Bottom