No. He is correct. Since an object reference is a pointer, the value of the
pointer
is sent to the method. However, that value *still* points to the same
object!

--Olu E.

> -----Original Message-----
> From: Milt Epstein [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, August 13, 1999 1:08 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [Way Off-Topic] Re: will this code work?
>
> On Fri, 13 Aug 1999, Steve Odendahl wrote:
>
> [ ... ]
> > No theory is necessary.  You can look it up.
> >
> > "All parameters to methods in Java are "call by value". That is,
> > values of parameter variables in a method are copies of the values
> > the invoker specified.  ...  When the parameter is an object
> > reference, however, the object reference is what is passed "by
> > value", not the object itself."
> >
> > -  Section 2.6.1, The Java Programming Language,  Arnold & Gosling, 1996
> [ ... ]
>
> Well, to my mind, if you have to add that big a qualifier about what
> happens with object parameters, then a statement like "All parameters
> ... are 'call by value'" is pretty meaningless.
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to