Q. Which of the following statement is correct?

  • (A) replace() method replaces all occurrences of one character in invoking string with another character
  • (B) replace() method replaces only first occurrences of a character in invoking string with another character
  • (C) replace() method replaces all the characters in invoking string with another character
  • (D) replace() replace() method replaces last occurrence of a character in invoking string with another character
πŸ’¬ Discuss
βœ… Correct Answer: (A) replace() method replaces all occurrences of one character in invoking string with another character

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
127
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
84%
Success Rate