Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (C) both toCharArray() & getChars()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
152
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
85%
Success Rate