JAVA Strings The class string belongs to ................. package. java.string java.lang java.awt java.applet java.string java.lang java.awt java.applet ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abc bcd abcd bc None of these abc bcd abcd bc None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns true 1 -1 false an int value true 1 -1 false an int value ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); 0 1 true -1 false 0 1 true -1 false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings Determine output:public class Test{ public static void main(String args[]){ String s1 = "SITHA";String s2 = "RAMA";System.out.println(s1.charAt(0) > s2.charAt(0)); }} Throws Exception 0 Compilation error false true Throws Exception 0 Compilation error false true 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)); }} None of these one onetwo twoone two None of these one onetwo twoone two ANSWER DOWNLOAD EXAMIANS APP