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 123 abc Runtime exception thrown Compilation error 123 abc Runtime exception thrown ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.awt java.applet java.string java.lang java.awt java.applet java.string java.lang ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program code?public class Test{ public static void main(String args[]){ String s = "what"; StringBuffer sb = new StringBuffer("what"); System.out.print(sb.equals(s)+","+s.equals(sb)); }} None of these false,false true,true false,true true,false None of these false,false true,true false,true true,false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be output?String S1 = "S1 ="+ "123"+"456";String S2 = "S2 ="+(123+456); S1=123456, S2=579 S1=579,S2=579 None of This S1=123456,S2=123456 S1=123456, S2=579 S1=579,S2=579 None of This S1=123456,S2=123456 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 11 7 13 None of this 2 11 7 13 None of this 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings Determine output:public class Test{ public static void main(String args[]){ String s1 = "SITHA";String s2 = "RAMA";System.out.println(s1.charAt(0) > s2.charAt(0)); }} Throws Exception 0 false true Compilation error Throws Exception 0 false true Compilation error ANSWER DOWNLOAD EXAMIANS APP