nerdexam
GIAC

GSSP-JAVA · Question #33

Which of the following statements are true? Each correct answer represents a complete solution. Choose all that apply.

The correct answer is A. StringBuffer is thread safe, but StringBuilder is not. B. The String class is final. C. StringBuilder offers faster performance than StringBuffer. See the full explanation below for the reasoning.

Question

Which of the following statements are true? Each correct answer represents a complete solution. Choose all that apply.

Options

  • AStringBuffer is thread safe, but StringBuilder is not.
  • BThe String class is final.
  • CStringBuilder offers faster performance than StringBuffer.
  • DThe size of the String can be obtained using the length property.

How the community answered

(17 responses)
  • A
    71% (12)
  • D
    29% (5)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice