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 None of these onetwo two one twoone None of these onetwo two ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings How many Constructor String class have? 7 11 13 2 None of this 7 11 13 2 None of this 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 Throws an exception Hellow Hello Compilation error None of these Throws an exception Hellow Hello Compilation error ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output of the following program code?class LogicalCompare{ public static void main(String args[]){ String str1 = new String("OKAY"); String str2 = new String(str1); System.out.println(str1 == str2); }} 0 true Displays error message false 1 0 true Displays error message false 1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Strings What will be the output?String str1 = "abcde";System.out.println(str1.substring(1, 3)); abcd bcd abc None of these bc abcd bcd abc None of these bc 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); }} false true true false true true false false false true true false true true false false ANSWER DOWNLOAD EXAMIANS APP