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. Displays error message All characters k are replaced by a. All characters a are replaced by k. The first occurrence of k is replaced by a. Displays error message All characters k are replaced by a. ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.applet java.awt java.string java.lang java.applet java.awt java.string java.lang 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 Compilation error abc 123 Runtime exception thrown Compilation error abc 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"; 2 3 4 None of this 2 3 4 None of this ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 13 7 11 2 None of this 13 7 11 2 None of this ANSWER DOWNLOAD EXAMIANS APP