my dog learned polymorphism
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "call by reference" Watch "call by reference" New topic

call by reference

Pritam Chatterjee
Ranch Hand

Joined: Jul 31, 2011
Posts: 38

how to use call by reference in java?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10825

You can't. Java is always pass by value.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Don't get me started about those stupid light bulbs.
subject: call by reference
It's not a secret anymore!