JAVA Strings What is the output of the following println statement?String str1 = "Hellow";System.out.println(str1.indexOf('t')); 0 false -1 1 true 0 false -1 1 true ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program code?public class Test{ public static void main(String args[]){ String s = "what"; StringBuffer sb = new StringBuffer("what"); System.out.print(sb.equals(s)+","+s.equals(sb)); }} true,true None of these false,true true,false false,false true,true None of these false,true true,false false,false ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings The class string belongs to ................. package. java.applet java.lang java.awt java.string java.applet java.lang java.awt java.string ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? None of this 13 11 7 2 None of this 13 11 7 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abc bc abcd None of these bcd abc bc abcd None of these bcd 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 2 4 3 None of this 2 4 3 ANSWER DOWNLOAD EXAMIANS APP