ArrayList Methods

AP Computer Science A· difficulty 4/5

<code>list.indexOf(99)</code> for list with no 99 returns

  • A

    null

  • B

    −1

    check_circle
  • C

    0

  • D

    size()

Explanation

Returns -1 if not found.

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

Related questions