Question: 2 . What is the difference between a primitive and a reference variable? A primitive variable stores a value, a reference variable stores an object
What is the difference between a primitive and a reference variable?
A primitive variable stores a value, a reference variable stores an object
A primitive variable stores the memory address of a value, a reference variable stores the memory address of an object
A primitive variable stores a value, a reference variable stores the memory address of an object
There is no difference
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
