String s1 = "str"; String s2 = "str"; System.out.println("Result: " + s1 == s2);
System.out.println("Result: " + s1 == s2); // Evaluation flow: // "Result: " + s1 == s2 // "Result: " + "str" == "str" // ("Result: " + "str") == "str" // "Result: str" == "str" // false
Login in to like
Login in to comment
+Роман Викторович Thanks! Updated
2015 Jul 13, 2:46:34 PM
pls, add more extentnded explantion.
2015 Jul 12, 6:41:16 AM
or Read more about Java Quizzes
Login in to like
Login in to comment