File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Storm Applied this week in the Other Open Source APIs forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "call by reference" Watch "call by reference" New topic
Author

call by reference

Pritam Chatterjee
Ranch Hand

Joined: Jul 31, 2011
Posts: 38

how to use call by reference in java?


Pritam
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10708
    
    9

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!]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: call by reference