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 Hellow None of these Hello Throws an exception Compilation error Hellow None of these 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? 2 13 7 None of this 11 2 13 7 None of this 11 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.lang java.string java.applet java.awt java.lang java.string java.applet java.awt ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is Displays error message All characters a are replaced by k. The first occurrence of k is replaced by a. All characters k are replaced by a. Displays error message All characters a are replaced by k. The first occurrence of k is replaced by a. All characters k are replaced by a. ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns -1 an int value false 1 true -1 an int value false 1 true ANSWER DOWNLOAD EXAMIANS APP