Passing an ArrayList to a method
- Acheck_circle
Passes a reference (modifications visible to caller)
- B
Compile error
- C
Throws exception
- D
Passes a copy
Explanation
Like all object references in Java.
AP Computer Science A· difficulty 3/5
Passing an ArrayList to a method
Passes a reference (modifications visible to caller)
Compile error
Throws exception
Passes a copy
Explanation
Like all object references in Java.
Want 10 more like this — adaptive to your weak spots?