what is advantages and disadvantages in call by value and
call by reference

Answer Posted / shashank and nishant

In call by reference the the object will get change.
In calle by value it won't.

call by reference passes the address of the argument into
the required subroutine, thenh when it is altered in the
subroutine, its altered value will overwrite the original
argument value.

call by value only passes the value to the subroutine(i.e.
the subfunction defined)and this does not overwrite the
argument value.

Is This Answer Correct ?    53 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions of lock objects?

691


How to find Kernal badi ?

1149


What is dialog module?

599


How will you link form with the event driven in sap scripts?

524


What primary key and foreign key relationship

878






​​What is amdp (abap managed data procedures)?​​

632


What is native sql?

593


What is meant by hide area?

647


What is the use of at new statement ?

1350


What are local objects?

614


What will happen when we use single buffered selected?

616


what will happen if called program is not executable ?

1695


Why do we declare a method of a class final? What can be the purpose? Give a scenario.

890


What are the personnel administration related Infotypes

2054


1.If there is one receiver,then To send 10 materials at a time through BD10 tcode, How many Master Idoc create? 2.If there is one receiver,then To send 1 material at a time through BD10 tcode, how many Master Idoc generated? 3.Can I Send Multiple Messges through BD10 tcode?

1491