JAVA Strings The String method compareTo() returns -1 false 1 an int value true -1 false 1 an int value true ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); None of these bc abcd bcd abc None of these bc abcd bcd abc ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.awt java.lang java.string java.applet java.awt java.lang java.string java.applet ANSWER DOWNLOAD EXAMIANS APP
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 How many Constructor String class have? None of this 7 2 11 13 None of this 7 2 11 13 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What could be output of the following fragment of code?public class Test{ public static void main(String args[]){ String x = "hellow";int y = 9;System.out.println(x += y); } } hellow9 Throws an exception as string and int are not compatible for addition 9hellow None of these Compilation error hellow9 Throws an exception as string and int are not compatible for addition 9hellow None of these Compilation error ANSWER DOWNLOAD EXAMIANS APP