JAVA Strings The class string belongs to ................. package. java.string java.applet java.awt java.lang java.string java.applet java.awt java.lang 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 twoone two one onetwo None of these twoone two one ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 13 11 2 7 None of this 13 11 2 7 None of this ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.String java.lang.util None of these java.lang.Object java.lang.String java.lang.util None of these java.lang.Object 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 9hellow hellow9 Throws an exception as string and int are not compatible for addition None of these Compilation error 9hellow hellow9 Throws an exception as string and int are not compatible for addition None of these 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)); }} 0 false true Compilation error Throws Exception 0 false true Compilation error Throws Exception ANSWER DOWNLOAD EXAMIANS APP