This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes call by reference Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "call by reference" Watch "call by reference" New topic
Author

call by reference

Pritam Chatterjee
Greenhorn

Joined: Jul 31, 2011
Posts: 27

how to use call by reference in java?


Pritam
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

You can't. Java is always pass by value.
http://www.javaranch.com/campfire/StoryPassBy.jsp


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
 
subject: call by reference
 
Similar Threads
how to show dialog after background task of asynctask finishes
java parameter passing
Call by reference WAS 5.0 Developer
java is call by value or call by ref.
java pass by copy, or pass by reference?