A
Q. Identify the output of the following program.
Code:
Public class Test{
Public static void main(String argos[]){
String str1 = “one”;
String str2 = “two”;
System.out.println(str1.concat(str2));
}
}
Public static void main(String argos[]){
String str1 = “one”;
String str2 = “two”;
System.out.println(str1.concat(str2));
}
}
- Correct Answer - Option(C)
- Views: 23
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.