Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

function variables

 
Stephan Lefebvre
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Find the "real deal" with this story from the Campfire Stories Section of JavaRanch :
http://www.javaranch.com/campfire/StoryPassBy.jsp
 
Junilu Lacar
Bartender
Posts: 7466
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Haggar writes about this in "Practical Java":
http://www-106.ibm.com/developerworks/java/library/praxis/pr1.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic