JAVA Strings The String method compareTo() returns false an int value 1 -1 true false an int value 1 -1 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)); }} two None of these one onetwo twoone two None of these one onetwo twoone ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The output of the following fraction of code ispublic class Test{ public static void main(String args[]){ String s1 = new String("Hello");String s2 = new String("Hellow");System.out.println(s1 = s2);}} None of these Hello Compilation error Throws an exception Hellow None of these Hello Compilation error Throws an exception Hellow ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.String java.lang.util java.lang.Object None of these java.lang.String java.lang.util java.lang.Object 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)); }} false 0 Throws Exception Compilation error true false 0 Throws Exception Compilation error true ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many objects will be created?String a = new String("Examveda");String b = new String("Examveda");String c = "Examveda";String d = "Examveda"; None of this 3 2 4 None of this 3 2 4 ANSWER DOWNLOAD EXAMIANS APP