Question
Which of the following are true? (Choose all that apply.)
- A. Primitives are passed by reference.
- B. Primitives are passed by value.
- C. References are passed by reference.
- D. References are passed by value.
B, D.
Note
In Java, all arguments are passed by value.
PreviousNextRelated