KnowledgeBoat Logo
|

Computer Applications

The String class method to join two strings is:

  1. concat(String)
  2. <string>.joint(string)
  3. concat(char)
  4. Concat()

Java String Handling

ICSE 2023

24 Likes

Answer

concat(String)

Reason — concat() method is used to join two strings. Its syntax is as follows:

String1.concat(String2)

Answered By

15 Likes


Related Questions