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 true,true None of these false,false true,false false,true true,true None of these false,false true,false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 11 7 2 None of this 13 11 7 2 None of this 13 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); bcd abc None of these abcd bc bcd abc None of these abcd bc ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.util java.lang.String None of these java.lang.Object java.lang.util java.lang.String None of these java.lang.Object ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program code?class LogicalCompare{ public static void main(String args[]){ String str1 = new String("OKAY"); String str2 = new String(str1); System.out.println(str1 == str2); }} 0 true false 1 Displays error message 0 true false 1 Displays error message 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);}} None of these Hellow Throws an exception Compilation error Hello None of these Hellow Throws an exception Compilation error Hello ANSWER DOWNLOAD EXAMIANS APP