JAVA Strings toString() method is defined in java.lang.util java.lang.Object java.lang.String None of these java.lang.util java.lang.Object java.lang.String None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 7 11 2 None of this 13 7 11 2 None of this 13 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); }} Displays error message true 0 1 false Displays error message true 0 1 false 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 k are replaced by a. The first occurrence of k is replaced by a. All characters a are replaced by k. Displays error message All characters k are replaced by a. The first occurrence of k is replaced by a. All characters a are replaced by k. ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abcd None of these abc bcd bc abcd None of these abc bcd bc 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)); }} true,false true,true None of these false,false false,true true,false true,true None of these false,false false,true ANSWER DOWNLOAD EXAMIANS APP