Which of the following statement is correct?

Question:
Which of the following statement is correct?

1.replace() method replaces all the characters in invoking string with another character.

2.replace() replace() method replaces last occurrence of a character in invoking string with another character.

3.replace() method replaces only first occurances of a character in invoking string with another character.

4.replace() method replaces all occurrences of one character in invoking string with another character.

Posted Date:-2021-10-25 05:40:10


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!