This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java object passing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java object passing" Watch "Java object passing" New topic
Author

Java object passing

Liz Costelloe
Greenhorn

Joined: Nov 01, 2003
Posts: 17
How do you pass an object? As opposed to just passing a reference to it. And when would you need to do this, i.e. when is it not sufficient to just pass a reference?
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

You only ever get to pass the referance.


Please ignore post, I have no idea what I am talking about.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java object passing
 
It's not a secret anymore!