JAVA Strings How many objects will be created?String a = new String("Examveda");String b = new String("Examveda");String c = "Examveda";String d = "Examveda"; 4 3 None of this 2 4 3 None of this 2 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 0 true 1 -1 false 0 true 1 -1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.util None of these java.lang.String java.lang.Object java.lang.util None of these java.lang.String java.lang.Object ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.awt java.applet java.lang java.string java.awt java.applet java.lang java.string 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)); }} onetwo two None of these twoone one onetwo two None of these twoone one 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