Phương Linh
New member
What will be the output of the following Java program?
A. a
B. b
C. c
D. abc
Code:
class String_demo
{
public static void main(String args[])
{
char chars[] = {'a', 'b', 'c'};
String s = new String(chars);
System.out.println(s);
}
}
B. b
C. c
D. abc