S

Shiva Ram • 30.44K Points
Instructor I

Q. Which of the following statement is correct?

  • (A) replace() method replaces all occurrences of one character in invoking string with another character
  • (B) replace() method replaces only first occurrences of a character in invoking string with another character
  • (C) replace() method replaces all the characters in invoking string with another character
  • (D) replace() replace() method replaces last occurrence of a character in invoking string with another character
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics