JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); 0 true false 1 -1 0 true false 1 -1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The String method compareTo() returns true -1 1 an int value false true -1 1 an int value false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.awt java.lang java.applet java.string java.awt java.lang java.applet java.string 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 Compilation error Hellow Throws an exception Hello None of these Compilation error Hellow Throws an exception Hello 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 twoone onetwo two None of these one twoone onetwo two None of these 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 4 3 2 None of this 4 3 2 ANSWER DOWNLOAD EXAMIANS APP