Home / Expert Answers / Computer Science / public-class-stringequalitytest1-public-static-void-main-string-args-str-pa404

(Solved): ``` public class StringEqualityTest1 { public static void main(String[] args) { Str ...



``` public class StringEqualityTest1 { public static void main(String[] args) { String x1="abcd"; String x2="ab"; x2 += "cd"; if (x1 == x2) System.out.println("true"); else System.out.println("false"); } } ```



We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe