Re: Java Memory question
On 03/16/2011 10:57 AM, Joshua Cranmer wrote:
On 03/16/2011 10:27 AM, Eric wrote:
Are you paying attention? I thought we already discussed this.
I'm paying attention to someone who has a chip on his shoulder about using the
correct terminology.
To clone an object is to create a new object as a copy of it.
Not here, no. This is Java. In Java, as Joshua explains below and several of
us have tried to get through to you, "clone" has a specific meaning. USE THE
CORRECT TERMINOLOGY, please.
You really don't want to be stubborn about this, I assure you.
Passing a serialized object through a stream creates new object as a
copy of it.
Technically it uses different methods from the Java. Functionally
it's the same thing.
I call it cloning because that's the method name!
And you're wrong to do so.
Pay attention!
A consistent problem in this thread has been the misunderstanding of
terminology. In Java, the term `cloning' without any other qualifiers is
understood to mean the creation of a copy of an object through invocation of
the clone() method or similar; in other words, a Java near-equivalent to a C++
copy constructor. What you are referring to is definitely not this form of
`cloning'; hence your consistent reference to it causes confusion among
everyone else.
And, Eric, your obstinate refusal to use the correct terminology is at best
inexplicable.
--
Lew
Honi soit qui mal y pense.