Which of these lines of code give s a string-type value of "Hello World"?

var s = String.Concat ("Hello ", "World");var s = "Hello " + "World";char[] chars = { 'H', 'e', 'l', 'l', 'o', ' ', 'W', 'o', 'r', 'l', 'd' };
var s = new String (chars);
var s = String.Join ("Hello ", "World");

Good job! We can use Concat (), constructors or literals for that. String.Join (), however, is used for joining string arrays.

Oh noes! We can use Concat (), constructors or literals for that. String.Join (), however, is used for joining string arrays.