An Easy Actual and formal parameters in java
For exampleIn the code given below the concept of actual and formal parameter is used.
Actual and formal parameters
Actual parameters:
The parameters that appear in the method invocation (while calling the method)are called actual parameters
Formal parameters:
The parameters that appear in the method definition are called formal parameters.
For more java videos click
https://youtu.be/GeSDLXhzFig

For example
In the code given below the concept of actual and formal parameter is used.
Class para
{
Public void add(int a, int b) //a and b are formal parameters
{
int sum= a+b;
System.out.println("the sum is "+ sum);
}
Public static void main ()
{
int num= 4;
int num1=5;
Add(num, num1); //num, num1 are actual parameters
}
}For other java related topics click
Data types in JAVA
Related Posts
Continue learning with these related articles

Logic Gates for ISC Class 11: Truth Tables, Universal Gates, Half and Full Adder
ISC Class 11 Computer Science notes on logic gates: AND, OR, NOT, NAND, NOR, XOR and XNOR with truth tables, why NAND and NOR are universal gates, and half adder and full adder circuits with their Boolean expressions.
Decimal to Binary Conversion in Java: 3 Programs with Examples
How to convert a decimal number to binary on paper and in Java: three programs (String, place value and Integer.toBinaryString), binary to decimal, a dry run and common mistakes.
Sum of First n Natural Numbers in Java (Loop and Formula)
Find the sum of the first n natural numbers in Java with a for loop, a while loop and the formula n(n + 1)/2, with a dry run and the sums of even numbers, odd numbers, squares and cubes.