Developing Algorithms Using ArrayLists

AP Computer Science A· difficulty 3/5

Passing an ArrayList to a method

  • A

    Passes a reference (modifications visible to caller)

    check_circle
  • B

    Compile error

  • C

    Throws exception

  • D

    Passes a copy

Explanation

Like all object references in Java.

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

Related questions