PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.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);
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

  • Like
Reactions: KOROKORO

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom