Article View: borland.public.jbuilder.java.language
Article #14480Re: Big Question !!!
From: Tor Iver Wilhelmsen
Date: Fri, 03 Sep 1999 00:00
Date: Fri, 03 Sep 1999 00:00
11 lines
965 bytes
965 bytes
Gemplus Software <gemplus.software@gemplus.com> writes: > displays myXXX is myInt = 2. Why ???? Because you only change the method-local reference. In Java, all arguments are passed by value. What is confusing is that the value of an "object variable" is a pointer to the object, while the value of a "primitive variable" is the promitive - number or bolean - itself. Unlike e.g. Smalltalk and Python, Java does not use "number objects", except for the utility/wrapper classes like java.lang.Integer.
Technical Details
Message-ID:
<uzoz44egt.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37CF7931.706BF049@gemplus.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5929964ef2095e5a X-Google-Attributes: gidf74b3,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: Big Question !!! Date: 1999/09/03 Message-ID: <uzoz44egt.fsf@sds.no> X-Deja-AN: 520524884 Sender: towi@SDSA1761 References: <37CF7931.706BF049@gemplus.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language