What will be the output of the following C# code snippet?
static void main(String args[])
{
char chars[] = {'a', 'b', 'c'};
String s = new String(chars);
Console.WriteLine(s);
}
static void main(String args[])
{
char chars[] = {'a', 'b', 'c'};
String s = new String(chars);
Console.WriteLine(s);
}A. a
B. b
C. ab
D. abc
Answer: Option D

Join The Discussion