Which of the following statements is correct?
A. replace() replace() method replaces last occurrence of a character in invoking strings with another character
B. replace() method replaces only first occurrence of a character in invoking strings with another character
C. replace() method replaces all occurrences of one character in invoking strings with another character
D. none of the mentioned
Answer: Option C
Join The Discussion