JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); false true -1 1 0 false true -1 1 0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); None of these abcd abc bc bcd None of these abcd abc bc bcd ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 13 11 None of this 2 7 13 11 None of this 2 7 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)); }} one onetwo twoone two None of these one onetwo twoone two None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.applet java.string java.lang java.awt java.applet java.string java.lang java.awt ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?public class Test{ public static void main (String[] args){ String test = "a1b2c3"; String[] tokens = test.split("\\d"); for(String s: tokens) System.out.print(s); } } Compilation error Runtime exception thrown abc 123 Compilation error Runtime exception thrown abc 123 ANSWER DOWNLOAD EXAMIANS APP