You need to sign in to do that
Don't have an account?
rajaram.admin
1.Call by reference and call by value in APEX?
HI,
give me the reply
Thanks & Regards
Rajaram
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
HI,
give me the reply
Thanks & Regards
Rajaram
call by value = only the value of the variable is given as a parameter. When you change the value in the function, nothing happens to the variable in the structure that calls our function.
All primitive data types are passed by value.(eg string, boolean, date, datetime, decimal etc)
call by reference = the reference to the variable is given as a parameter. This is the normal case. Anything the function changes with it, goes right back to the variable in the structure that calls our function.
Non primitive data types are passed by refernce(eg list, set, map)