Which of the following statement is correct?
A. reverse() method reverses some characters
B. reverseall() method reverses all characters
C. replace() method replaces all instances of a character with new character
D. replace() method replaces first occurrence of a character in invoking string with another character
Answer: Option C
Join The Discussion