Examveda

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: Option D


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings