String Methods

AP Computer Science A· difficulty 1/5

What does <code>"".length()</code> return?

  • A

    Throws exception

  • B

    0

    check_circle
  • C

    1

  • D

    null

Explanation

Empty string has length 0.

Want 10 more like this — adaptive to your weak spots?

Related questions