A
Q. What will be the output of following Java code?
Code:
public class ConcatNull {
public static void main(String[] args) {
String str1 = "include";
String str2 = "help";
System.out.println(str1 + str2);
}
}
public static void main(String[] args) {
String str1 = "include";
String str2 = "help";
System.out.println(str1 + str2);
}
}
- Correct Answer - Option(A)
- Views: 31
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.