[HD Pg 61, Sec. 3.2.0 - difference-between-reference-variables-and-primitive-variables]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
enthunoob
Posts: 60
Joined: Thu Apr 15, 2021 12:21 pm
Contact:

[HD Pg 61, Sec. 3.2.0 - difference-between-reference-variables-and-primitive-variables]

Post by enthunoob »

From top of page 62, I'm having trouble reading the following sentence:

Therefore, when you invoke a method (or access a field) "using a reference" (1), the JVM invokes that method on the "actual object referred to by that variable" (2) and not on "the variable itself" (3).

I think changing

- (1) to "using a reference variable"
And
- (2) to "actual object (referred by that variable)"
- (3) to "the reference variable itself"

Is what it means to say and would also be correct (and make it much more clear). Are my interpretations correct?

Post Reply

Who is online

Users browsing this forum: No registered users and 97 guests