wood burning stoves 2.0*
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
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: 4444
    
    5

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]
 
 
subject: function variables
 
Similar Threads
passed
Parse data that has been passed through?
Passed
Passed By Reference?
Passing arguments to function passed to event click function.