PRO192_-_S6_-_FA_2023_-_FE_1038.webp
V

PRO192_-_S6_-_FA_2023_-_FE_1038.webp

Answer (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";
B. ABC true
int k = x.indexOf("$");
C. AB true
String y = x.substring(0,k);String z = new String(new char[] {'A', 'B', 'C'});
D. ABCP true
System.out.print(y + " ");
System.out.println(y.equals(z));
}
A. ABC false
E. ABCP false


Exit 28

Thông tin

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

Image metadata

Filename
PRO192_-_S6_-_FA_2023_-_FE_1038.webp
File size
52.6 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom