This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes function variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "function variables" Watch "function variables" New topic
Author

function variables

Stephan Lefebvre
Greenhorn

Joined: Jun 23, 2001
Posts: 2
Hi, I recently read a discussion note at java.sun.com and it mentioned that variables are past to functions by reference, while in a previous book, and in my experience, it seemed as if things are passed by instance and the function does not affect the passed data structures unless they(or more accurately, it) are returned.
What�s the real deal with data transfer and is there any way to control it like in c?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Find the "real deal" with this story from the Campfire Stories Section of JavaRanch :
http://www.javaranch.com/campfire/StoryPassBy.jsp


"JavaRanch, where the deer and the Certified play" - David O'Meara
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 6295
    
  15

Peter Haggar writes about this in "Practical Java":
http://www-106.ibm.com/developerworks/java/library/praxis/pr1.html


Junilu - [How to Ask Questions] [How to Answer Questions]
 
Have you checked out Aspose?
 
subject: function variables
 
It's not a secret anymore!