JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); true 1 false -1 0 true 1 false -1 0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 11 7 13 2 None of this 11 7 13 2 None of this 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);}} Throws an exception Compilation error None of these Hello Hellow Throws an exception Compilation error None of these Hello Hellow ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is The first occurrence of k is replaced by a. Displays error message All characters k are replaced by a. All characters a are replaced by k. The first occurrence of k is replaced by a. Displays error message All characters k are replaced by a. All characters a are replaced by k. ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in None of these java.lang.util java.lang.String java.lang.Object None of these java.lang.util java.lang.String java.lang.Object 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 2 3 4 None of this 2 3 4 ANSWER DOWNLOAD EXAMIANS APP