Computer Science, asked by vishaljangid080, 1 month ago

Difference Between Replace And Replace All.​

Answers

Answered by antrachaurasia472
1

Answer:

The difference between replace() and replaceAll() method is that the replace() method replaces all the occurrences of old char with new char while replaceAll() method replaces all the occurrences of old string with the new string.

Answered by yashita001
2

The difference between replace() and replace All() method is that the replace() method replaces all the occurrences of old char with new char while replaceAll() method replaces all the occurrences of old string with the new string.

Hope this helps u :-)

Similar questions