You created the class Msg { Msg() { String str1 = "Health"; String str2 = "is"; String str3 = "Wealth"; System.out.println(str1.concat(str2)); str1.concat(str2); System.out.println(str1.concat(str3)); } public static void main(String str[]) { new Msg(); } } What will happen on compiling and running the code? '>
Answer
Correct Answer: It will print Healthis on the first line followed by HealthWealth on the second line
Explanation:
Note: This Question is unanswered, help us to find answer for this one