Introduction to ArrayList

AP Computer Science A· difficulty 3/5

When to prefer ArrayList over array

  • A

    Fixed-size, performance-critical primitive storage

  • B

    Recursive data only

  • C

    Dynamic-size, with object/Integer/String elements

    check_circle
  • D

    Multi-dimensional data only

Explanation

ArrayList offers convenient resizable interface for objects.

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

Related questions