What are the two ways of invoking functions?

Short Answer
Views 13

Answer:

Two ways of invoking functions:

  • Call by value: The actual value is passed to the function, and changes made in the function do not affect the original variable.
  • Call by reference: A reference (address) to the variable is passed to the function, and changes made in the function affect the original variable.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.