🎴 Flashcard Mode
Networks
Card1 / 15
Mastered0
Review0
QuestionClick to flip
Which of the following methods is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed?
AnswerClick to flip back
A
ensureCapacity()
💡 Explanation:
This method is used to pre-allocate a space for a certain number of characters, after a StringBuffer has been constructed.