JAVA Strings How many Constructor String class have? 2 7 11 None of this 13 2 7 11 None of this 13 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); 1 false true 0 -1 1 false true 0 -1 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)); }} onetwo None of these one twoone two onetwo None of these one twoone two 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 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); } } Compilation error hellow9 None of these Throws an exception as string and int are not compatible for addition 9hellow Compilation error hellow9 None of these Throws an exception as string and int are not compatible for addition 9hellow ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns false -1 an int value true 1 false -1 an int value true 1 ANSWER DOWNLOAD EXAMIANS APP