Multiple choice technology programming languages

Choose the methods that are not available in StringBuilder class.

  1. length

  2. size

  3. capacity

  4. reverse

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

The StringBuilder class in Java has length(), capacity(), and reverse() methods, but it does not have a size() method (which is typically used in Collection classes).