PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
Mai Linh 2001

PRO192_-_SU_2023_-_Block_5_-_RE_753.webp

OD
(Choose 1 answer)
A. NOT EQUAL
B. EQUAL
C. There is a compile error in the program.
D. EQUAL NOT EQUAL
What is the output when you try to compile and run the following program?
public class Main {
public static void main(String argv[]){
String s = "Hi there";int pos = s.indexOf(" ");
String r = s.substring(0, pos);
String s2 = new if(r.equals(s2))String(new char[] {'H',''});
System.out.println("EQUAL");
else System.out.println("NOT EQUAL");
System.out.println();
}


Thông tin

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

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
File size
55 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom