PRO192_-_C1_-_RE_-_SU_2023_545.webp
Hoàng Long1

PRO192_-_C1_-_RE_-_SU_2023_545.webp

(Choose 1 answer)
What is the output when you try to compile and run the following program?
import java.util.*;
public class Main {
public static void main(String argv[]){String x = "ABC$PQUV";
int k = x.indexOf("$");String y x.substring(0,k);= x.
String z = new String(new char[] {'A','B','C'});
System.out.print(y + " ");
System.out.println(y.equals(z));
}
}
A. ABC true
B. ABC false
C. ABCP true
D. ABCP false
E. AB true

Exit 50

Thông tin

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

Image metadata

Filename
PRO192_-_C1_-_RE_-_SU_2023_545.webp
File size
53.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom