A

Admin • 802.91K Points
Coach

Q. How do you concatenate two strings?

  • (A) str1.concat(str2)
  • (B) str1 + str2
  • (C) str1.append(str2)
  • (D) Both A and B

Explanation by: Admin
Both + operator and concat() method can be used to concatenate strings.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.