Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18608
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-09-08 17:22 -0700 |
| Message-ID | <6e06860b-4c72-4f4b-8892-69aa4242a4dc@googlegroups.com> (permalink) |
| Subject | Objects only passed by copy? |
| From | Luft <edamron@spamcop.net> |
I'm learning JAVA and read that EVERYTHING in JAVA is passed by copy and that in the case of objects the internal variables share a reference but that objects are also passed by copy. I'm trying to think of a piece of code that would demonstrate this but can't think of anything off the top of my head. Thanks.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Objects only passed by copy? Luft <edamron@spamcop.net> - 2012-09-08 17:22 -0700
Re: Objects only passed by copy? Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 20:59 -0400
Re: Objects only passed by copy? Arne Vajhøj <arne@vajhoej.dk> - 2012-09-08 21:02 -0400
Re: Objects only passed by copy? Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-08 21:30 -0400
Re: Objects only passed by copy? Lew <lewbloch@gmail.com> - 2012-09-30 17:23 -0700
Re: Objects only passed by copy? Roedy Green <see_website@mindprod.com.invalid> - 2012-09-08 19:57 -0700
Re: Objects only passed by copy? Roedy Green <see_website@mindprod.com.invalid> - 2012-09-30 13:50 -0700
csiph-web