In Java no variable can ever hold an object. A variable can only hold a reference to an object.

Average Rating
0 out of 5 stars. 0 votes.

In Java no variable can ever hold an object. A variable can only hold a reference to an object.

variable is a reference or pointer to that object