JAVA Strings toString() method is defined in None of these java.lang.String java.lang.Object java.lang.util None of these java.lang.String java.lang.Object java.lang.util ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns 1 an int value -1 true false 1 an int value -1 true false 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 str1 = "one";String str2 = "two";System.out.println(str1.concat(str2)); }} twoone None of these one onetwo two twoone None of these one onetwo two ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 7 13 2 None of this 11 7 13 2 None of this 11 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); bcd abcd bc abc None of these bcd abcd bc abc None of these 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);}} Compilation error Hellow Hello None of these Throws an exception Compilation error Hellow Hello None of these Throws an exception ANSWER DOWNLOAD EXAMIANS APP