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