A
Q. What is the output of the following code?
Code:
String str1 = “hello”;
String str2 = “world”;
System.out.println(str1 + str2);
String str2 = “world”;
System.out.println(str1 + str2);
- Correct Answer - Option(A)
- Views: 19
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.