1. NSString concatenation by creating a new NSString object from two NSString objects.
NSString *string1 = @"This is";
NSString *string2 = @" a test.";
NSString *string3 = [string1 stringByAppendingString:string2];
NSString *string1 = @"This is";
NSString *string2 = @" a test.";
string1 = [string1 stringByAppendingString:string2];
2. NSString concatenation using NSMutableString object.
NSMutableString *string1 = @"This is";
NSString *string2 = @" a test.";
[string1 appendString:string2];