Vidyalelo
Java Programming · Q75

Strings

Programming · Java Programming · question 75

Q75

What will be the output of the following Java program? class String_demo public static void main(String args[]) char chars[] = 'a', 'b', 'c'; String s = new String(chars); System.out.println(s);

A.
a
B.
b
C.
c
D.
abc
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board