aspose file tools*
The moose likes Java in General and the fly likes s this , a true example of pass by value ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "s this , a true example of pass by value ?" Watch "s this , a true example of pass by value ?" New topic
Author

s this , a true example of pass by value ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

is this , a true example of pass by value ?
if not , please modify the code and explain it . thanks



The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18903
    
    8

If it's Java code and it's passing a parameter, then it must be an example of "pass by value". I don't need to look at the code to say that. That's because parameters are always passed by value in Java.
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

Paul Clapham wrote:If it's Java code and it's passing a parameter, then it must be an example of "pass by value". I don't need to look at the code to say that. That's because parameters are always passed by value in Java.

what is pass by reference then ....???
use the same program to explain please
Luigi Plinge
Ranch Hand

Joined: Jan 06, 2011
Posts: 441

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: s this , a true example of pass by value ?