Multiple choice

Which of the following methods in StringBuffer class concatenates two strings of different types to the end of the invoking string object?

  1. getChars()

  2. append()

  3. insert()

  4. reverse()

  5. delete()

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

This method in StringBuffer class concatenates two strings of different types to the end of the invoking string object.