A

Admin • 828.43K Points
Coach

Q. 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
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.