Hello guys, consider this question:
Which of the following is the correct statement to return a string from an array a of characters?
Select one:
A. New String(a)
B. toString(a)
C. convertToString(a)
D. String.toString(a)
Can someone explain which answer is correct, why and why the others are incorrect please; according to chatgpt, the answer is a but I don't understand why... also I don't have the correct answer so I don't know if chatgpt is correct.
Thanks in advance