JAVA Strings String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is All characters a are replaced by k. The first occurrence of k is replaced by a. All characters k are replaced by a. Displays error message All characters a are replaced by k. The first occurrence of k is replaced by a. All characters k are replaced by a. Displays error message ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.awt java.applet java.lang java.string java.awt java.applet java.lang java.string ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?public class Test{ public static void main (String[] args){ String test = "a1b2c3"; String[] tokens = test.split("\\d"); for(String s: tokens) System.out.print(s); } } 123 Runtime exception thrown abc Compilation error 123 Runtime exception thrown abc Compilation error ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many objects will be created?String a = new String("Examveda");String b = new String("Examveda");String c = "Examveda";String d = "Examveda"; 4 3 None of this 2 4 3 None of this 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 11 13 None of this 2 7 11 13 None of this 2 7 ANSWER DOWNLOAD EXAMIANS APP