27
(Choose 1 answer)
A. ABCP true
B. ABCP false
C. ABC true
D. ABC false
E. AB true
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));
}
}