aspose file tools*
The moose likes Beginning Java and the fly likes  pass by value and pass 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 " pass by value and pass by reference" Watch " pass by value and pass by reference" New topic
Author

pass by value and pass by reference

MohamedSalim malik
Greenhorn

Joined: Feb 04, 2011
Posts: 19
What is really mean by pass by value and pass by reference. Is java using both methods. How can we identify these two methods. and what is the most appropriate method?
Can anyone help me please with a example.. thank you. :
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Check this FAQ.


[My Blog]
All roads lead to JavaRanch
MohamedSalim malik
Greenhorn

Joined: Feb 04, 2011
Posts: 19
Thank you. :
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39436
    
  28
Lots of people get confused about that; have a look at this old discussion.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pass by value and pass by reference