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
πŸ’¬ Discuss
βœ… Correct Answer: (C) ontwo

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
405
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandrakant
Publisher
πŸ“ˆ
82%
Success Rate