JAVA Strings String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is Displays error message All characters k are replaced by a. The first occurrence of k is replaced by a. All characters a are replaced by k. Displays error message All characters k are replaced by a. The first occurrence of k is replaced by a. All characters a are replaced by k. ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns an int value -1 1 false true an int value -1 1 false true ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 2 11 13 None of this 7 2 11 13 None of this 7 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.lang java.applet java.string java.awt java.lang java.applet java.string java.awt ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.Object java.lang.String None of these java.lang.util java.lang.Object java.lang.String None of these java.lang.util ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program?public class Test{ public static void main(String args[]){String str1 = "one";String str2 = "two";System.out.println(str1.concat(str2)); }} two one onetwo None of these twoone two one onetwo None of these twoone ANSWER DOWNLOAD EXAMIANS APP