Multiple choice

Which of the following methods in StringBuffer class is used to replace one set of characters with another set inside a StringBuffer object?

  1. substing()

  2. delete()

  3. deleteCharAt()

  4. insert()

  5. replace()

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This method in StringBuffer class is used to replace one set of characters with another set inside a StringBuffer object.