Card 43 / 76: Objects are passed by __________.
A)
Value
B)
Reference
C)
Copy
D)
Parameter
Answer:
B) Reference
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
A, C, and D are incorrect.
A is incorrect because primitives are passed by value; this means that a copy of the variable is passed to methods.
C and D are incorrect because copy and parameter are not valid ways to pass a variable.
|