What is string concatenation?
Answers
Answered by
5
The joining of two strings into a single string is called string concatenation.
For example:
C$="Sania"
D$="Mondal"
Print C$+D$
The output will be: Sania Mondal
For example:
C$="Sania"
D$="Mondal"
Print C$+D$
The output will be: Sania Mondal
Answered by
4
joining of two string using concat function is known as string concatenation.
example:
String s1 = "Apple";
String s2 = "Pie";
String s3 = s1.concat(s2);
System.out.print(s3);
O/p : ApplePie
example:
String s1 = "Apple";
String s2 = "Pie";
String s3 = s1.concat(s2);
System.out.print(s3);
O/p : ApplePie
Similar questions