A

Admin • 828.70K Points
Coach

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));
}
}
  • (A) one
  • (B) two
  • (C) ontwo
  • (D) twoone
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.