Call by value and Call by reference
Call by reference is not available in java.
So we will study call by value and call by reference in other languages like c , cpp

- Call By Value:
-Original value is not modified.
-When the parameters are passed as an value in calling method then called method is invoked and the variables in that method don’t have any impact on original passed values.
-This is called call by value.

OUTPUT: 5
2. Call By Reference:
-Original value is modified as we pass references.
-When the parameters are passed as an reference in calling method then called method is invoked and the variables in that method have impact on original passed values.
-Actual and formal parameters share the same data address.
-This is called call by reference.

OUTPUT:
a = 20
b = 10

OUTPUT:
a = 20
b = 10
Happy Coding !!