in JAVA by
Out of these methods, which one can be used for converting all the characters present in a String into an Array of characters?

1) both getChars() & toCharArray()

2) both charAt() & getChars()

3) charAt()

4) all of the mentioned

1 Answer

0 votes
by

1) both getChars() & toCharArray()

...