Hi,

In both the cases  local memory variables are created (in the called-
method to hold the parameters being passed) .

Pass by value = the parameter value that is being passed will be a
primitive type; Hence there will be copy of value being passed
Pass by reference = the parameter  value that is being passed will be
reference(address) of an object. Hence there will be copy of reference

Hope this will help
:-)

On Mar 13, 9:54 am, CIA <[email protected]> wrote:
> See the link 
> below:http://www.javaworld.com/javaworld/javaqa/2000-05/03-qa-0526-pass.html
>
> That is pass by reference. It create more
> But now, I want to know how really pass by value does !
> Does it create one more cell in memory?
>
> Suppose, I have a variable:
>       int a = 10;
>
> then pass by value:
>      method(a);
>
> How does it work?
> Thanks for replying :)

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to