1..What is the output of this 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) abc
b) a
c) b
d) c

Posted on by