Examveda
Examveda

Which of the following methods is used to replace all occurrences of a specified character in a string in Java?

A. replace()

B. replaceAll()

C. replaceChar()

D. replaceAllOccurrences()

Answer: Option B


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings