Sunday 22 May 2011

String concatenation operator in java

String concatenation operator is +.
eg. "ab" + "cd" = "abcd"

i.e.

String s1 = "ab";
String s2 = "cd";
String s3 = s1+s2;

No comments:

Post a Comment