RE: Java Trivia

2002-02-01 Thread Mikkel Bruun
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);

RE: Java Trivia

2002-02-01 Thread Galbreath, Mark
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? ;-)

RE: Java Trivia

2002-02-01 Thread Jonathan Gibbons
] 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

RE: Java Trivia

2002-02-01 Thread Charlesworth, Chico
: 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

RE: Java Trivia

2002-02-01 Thread Jim Bell
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

RE: Java Trivia

2002-02-01 Thread Galbreath, Mark
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

RE: Java Trivia

2002-02-01 Thread Jonathan Gibbons
[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

Re: Java Trivia

2002-02-01 Thread Olivier Dinocourt
(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

RE: Java Trivia

2002-02-01 Thread Bill Page
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

Re: Java Trivia

2002-02-01 Thread Bernard Choi
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