Q. What is the purpose of the charAt() method of a String object in Java?

  • (A) To add a character to the string
  • (B) To remove a character from the string
  • (C) To get the character at a specific index
  • (D) To get the length of the string
πŸ’¬ Discuss
βœ… Correct Answer: (C) To get the character at a specific index

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
162
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
81%
Success Rate