Question
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); }}
Answer: Option B
Submit Your Solution Below and Earn Points !
Submit Your Solution Below and Earn Points !
More Questions on This Topic :
Question 1. ToString() method is defined in....
Question 3. The String method compareTo() returns....
Question 9. How many Constructor String class have?....
Submit Solution