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:A
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