JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); None of these abcd abc bc bcd None of these abcd abc bc bcd ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 2 None of this 11 13 7 2 None of this 11 13 7 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.util java.lang.Object java.lang.String None of these java.lang.util java.lang.Object java.lang.String None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns 1 false an int value true -1 1 false an int value true -1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is Displays error message All characters a are replaced by k. All characters k are replaced by a. The first occurrence of k is replaced by a. Displays error message All characters a are replaced by k. All characters k are replaced by a. The first occurrence of k is replaced by a. 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); } } Runtime exception thrown Compilation error abc 123 Runtime exception thrown Compilation error abc 123 ANSWER DOWNLOAD EXAMIANS APP