Q45
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
AnswerD.
replace() method replaces first occurrence of a character in invoking string with another character
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board