It's not a secret anymore!
The moose likes Beginning Java and the fly likes Where in Thinking in Java is this ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Where in Thinking in Java is this ?" Watch "Where in Thinking in Java is this ?" New topic

Where in Thinking in Java is this ?

Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Somewhere in Bruce Eckel's Thinking in Java , Bruce correctly makes a tart comment on an academic's explanation of the difference between Call by Reference and Call by Value. (I know the difference between the two).

Does any one know the page. I just can't find it.
I have a hard copy 4th edition and a Word version of the 2nd.

Thank you.
BV Boose
Ranch Hand

Joined: Jul 26, 2008
Posts: 33
are you talking about this footnote?
If so, I found it on page 41 in the 4th edition.

1 This can be a flashpoint. There are those who say, �Clearly, it�s a pointer,� but this presumes an underlying
implementation. Also, Java references are much more akin to C++ references than to pointers in their syntax. In
the 1st edition of this book, I chose to invent a new term, �handle,� because C++ references and Java references
have some important differences. I was coming out of C++ and did not want to confuse the C++ programmers
whom I assumed would be the largest audience for Java. In the 2nd edition, I decided that �reference� was the
more commonly used term, and that anyone changing from C++ would have a lot more to cope with than the
terminology of references, so they might as well jump in with both feet. However, there are people who disagree
even with the term �reference.� I read in one book where it was �completely wrong to say that Java supports pass
by reference,� because Java object identifiers (according to that author) are actually �object references.� And (he
goes on) everything is actually pass by value. So you�re not passing by reference, you�re �passing an object
reference by value.� One could argue for the precision of such convoluted explanations, but I think my approach
simplifies the understanding of the concept without hurting anything (well, the language lawyers may claim that
I�m lying to you, but I�ll say that I�m providing an appropriate abstraction).
Graeme Byers
Ranch Hand

Joined: Apr 16, 2004
Posts: 127
Yes , that's it. I did not look at the footnotes.
Thank you.
I agree. Here's the link:
subject: Where in Thinking in Java is this ?
It's not a secret anymore!