nerdexam
GIAC

GSSP-JAVA · Question #240

Which of the following methods retrieves a single character from a string?

The correct answer is C. charAt(). See the full explanation below for the reasoning.

Question

Which of the following methods retrieves a single character from a string?

Options

  • Atrim()
  • Bsubstring()
  • CcharAt()
  • DindexOf()

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    11% (3)
  • C
    78% (21)
  • D
    7% (2)

Community Discussion

No community discussion yet for this question.

Full GSSP-JAVA Practice