File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 682

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: 18115
    
    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: 682

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 ?
 
Similar Threads
protected variables
Passing a Primitive By reference
Replace a char in a String
Private modifier problem
Passing value from one method to the next