Home » JAVA Programming » Characters » Question
  1. Which of these methods can be used to convert all characters in a String into a character array?
    1. both getChars() & charAt()
    2. both toCharArray() & getChars()
    3. charAt()
    4. all of the mentioned
    5. None of these
Correct Option: B

charAt() return one character only not array of character.



Your comments will be displayed only after manual approval.