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);}} None of these Hellow Compilation error Throws an exception Hello None of these Hellow Compilation error Throws an exception Hello ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program code?public class Test{ public static void main(String args[]){ String s = "what"; StringBuffer sb = new StringBuffer("what"); System.out.print(sb.equals(s)+","+s.equals(sb)); }} false,true false,false true,true None of these true,false false,true false,false true,true None of these true,false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abcd bcd bc abc None of these abcd bcd bc abc None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 11 None of this 13 2 7 11 None of this 13 2 7 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns -1 1 false an int value true -1 1 false an int value true 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 s1 = "java";String s2 = "java";System.out.println(s1.equals(s2));System.out.println(s1 == s2); }} true false true true false true false false true false true true false true false false ANSWER DOWNLOAD EXAMIANS APP