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?
[HD Pg 61, Sec. 3.2.0 - difference-between-reference-variables-and-primitive-variables]
Moderator: admin
-
- Posts: 60
- Joined: Thu Apr 15, 2021 12:21 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 97 guests