Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of these methods can be used to convert all characters in a String into a character array?

a) charAt()
b) both getChars() & charAt()
c) both toCharArray() & getChars()
d) all of the mentioned

Answer: c
Explanation: charAt() return one character only not array of character.

Join The Discussion