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 2 None of this 4 3 2 None of this ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 2 None of this 13 11 7 2 None of this 13 11 7 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.Object None of these java.lang.util java.lang.String java.lang.Object None of these java.lang.util java.lang.String 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 Throws an exception Compilation error None of these Hellow Hello Throws an exception Compilation error None of these Hellow ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); bcd bc abc None of these abcd bcd bc abc None of these abcd 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 onetwo None of these twoone two one onetwo None of these twoone two ANSWER DOWNLOAD EXAMIANS APP