wood burning stoves 2.0*
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
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: 18876
    
    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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: s this , a true example of pass by value ?