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); } } abc Runtime exception thrown 123 Compilation error abc Runtime exception thrown 123 Compilation error ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); false 1 -1 true 0 false 1 -1 true 0 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 3 2 4 None of this 3 2 4 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 13 11 None of this 7 2 13 11 None of this 7 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The output of the following fraction of code ispublic class Test{ public static void main(String args[]){ String s1 = new String("Hello");String s2 = new String("Hellow");System.out.println(s1 = s2);}} Hello None of these Hellow Throws an exception Compilation error Hello None of these Hellow Throws an exception Compilation error 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