JAVA Strings What will be output?String S1 = "S1 ="+ "123"+"456";String S2 = "S2 ="+(123+456); S1=123456,S2=123456 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 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"; 2 None of this 3 4 2 None of this 3 4 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings toString() method is defined in java.lang.Object java.lang.util None of these java.lang.String java.lang.Object java.lang.util None of these java.lang.String ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.lang java.string java.awt java.applet java.lang java.string java.awt java.applet 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 true -1 false 1 0 true -1 false 1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abc None of these bcd bc abcd abc None of these bcd bc abcd ANSWER DOWNLOAD EXAMIANS APP