JAVA Strings The String method compareTo() returns false 1 -1 true an int value false 1 -1 true an int value ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program?public class Test{ public static void main(String args[]){String str1 = "one";String str2 = "two";System.out.println(str1.concat(str2)); }} one twoone onetwo None of these two one twoone onetwo None of these two ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? None of this 11 7 13 2 None of this 11 7 13 2 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"; 3 4 2 None of this 3 4 2 None of this ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be output?String S1 = "S1 ="+ "123"+"456";String S2 = "S2 ="+(123+456); None of This S1=579,S2=579 S1=123456, S2=579 S1=123456,S2=123456 None of This S1=579,S2=579 S1=123456, S2=579 S1=123456,S2=123456 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 123 Compilation error abc Runtime exception thrown 123 Compilation error abc ANSWER DOWNLOAD EXAMIANS APP