Introduction to ArrayList

AP Computer Science A· difficulty 3/5

A key advantage of ArrayList over int[] is

  • A

    Smaller memory

  • B

    Dynamic size (grows as needed)

    check_circle
  • C

    Holds primitives directly

  • D

    Faster random access

Explanation

ArrayList grows automatically; arrays are fixed-size.

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

Related questions