Which statement is true for below code:- String s1 = "UpWork"; String s2 = "UpWork"; StringBuilder sb1 = new StringBuilder(); sb1.append("Up").append("Work"); System.out.println(s1 == s2); System.out.println(s1.equals(s2)); System.out.println(sb1.toString() == s1); System.out.println(sb1.toString().equals(s1));
Correct Answer: true is printed out exactly three times.
Explanation:
Note: This Question is unanswered, help us to find answer for this one