JAVA Strings toString() method is defined in java.lang.util java.lang.String java.lang.Object None of these java.lang.util java.lang.String java.lang.Object None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be output?String S1 = "S1 ="+ "123"+"456";String S2 = "S2 ="+(123+456); S1=123456, S2=579 None of This S1=579,S2=579 S1=123456,S2=123456 S1=123456, S2=579 None of This S1=579,S2=579 S1=123456,S2=123456 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"; 3 None of this 2 4 3 None of this 2 4 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 s1 = "java";String s2 = "java";System.out.println(s1.equals(s2));System.out.println(s1 == s2); }} true false false false true true false true true false false false true true false true 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); } } None of these Throws an exception as string and int are not compatible for addition hellow9 9hellow Compilation error None of these Throws an exception as string and int are not compatible for addition hellow9 9hellow Compilation error ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.applet java.string java.awt java.lang java.applet java.string java.awt java.lang ANSWER DOWNLOAD EXAMIANS APP