| What will be the output of the following Java code Slot 2 Question 7?
Choose the correct option from below list
(1)abc
(2)a
(3)b
(4)c
Answer:-(1)abc
Note:-String(chars) is a constructor of class string, it initializes string s with the values stored in character array chars, therefore s contains “abc”. | | |