Ehh...
primitives vs ojbects???
by value or by ref...
whats the point??
-Original Message-
From: Galbreath, Mark
To: Struts (E-mail); J2ee (E-mail)
Sent: 01-02-2002 14:40
Subject: Java Trivia
What's the difference between
int i = 3;
someMethod( i);
and
Point p = new Point( 3, 3);
Obviously, the first is passed by value, but the second? We know p will
reference the same object it referenced before the method invocation - the
memory location it points to is the same. Because p will always point to
the same memory location, is it not also passed by value?
;-)
]
cc:
Subject: RE: Java Trivia
Obviously, the first is passed by value, but the second? We know p will
reference the same object it referenced before the method invocation - the
memory location it points to is the same. Because p will always point to
the same memory location, is it not also passed
:
Subject: RE: Java Trivia
Obviously, the first is passed by value, but the second? We know p will
reference the same object it referenced before the method invocation - the
memory location it points to is the same. Because p will always point to
the same memory location, is it not also passed
01, 2002 9:02 AM
To: Struts Users Mailing List
Subject: RE: Java Trivia
Java doesn't have pointers! Just mudying the waters, or was it serious? If so sorry.
Think of it as chucking water over someone, as opposed to passing them a cup of water.
Thats pretty similar.
or, um, having someone
Like I said...it's Friday ;-)
-Original Message-
From: Jim Bell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:14 AM
To: Struts Users Mailing List
Subject: RE: Java Trivia
Perhaps this discussion is better suited for another mailing list, but in an
attempt to bring
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:
Subject: RE: Java Trivia
Like I said...it's Friday ;-)
-Original Message-
From: Jim Bell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:14 AM
To: Struts Users Mailing List
Subject: RE: Java
(hoping he has not just written bullshit... :)
- Original Message -
From: Galbreath, Mark [EMAIL PROTECTED]
To: 'Mikkel Bruun' [EMAIL PROTECTED]; Struts (E-mail)
[EMAIL PROTECTED]
Sent: Friday, February 01, 2002 2:48 PM
Subject: RE: Java Trivia
Obviously, the first is passed by value
of the pointer if
you like), you can change the internal stuff, but never the instance of the
object.
bp
-Original Message-
From: Olivier Dinocourt [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 8:53 AM
To: Struts Users Mailing List
Subject: Re: Java Trivia
yes and no.
the point
01, 2002 10:02 PM
Subject: RE: Java Trivia
Java doesn't have pointers! Just mudying the waters, or was it serious?
If so sorry.
Think of it as chucking water over someone, as opposed to passing them a
cup of water. Thats pretty similar.
or, um, having someone talk to you, rather than pass
10 matches
Mail list logo