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

ISC Practical 2027: College Enrolment Code Validator and Stream Report – Algorithm and Java Program
Fully solved ISC Computer Science Practical 2027 question: validate college enrolment codes made of a stream, year and serial number, give the exact reason for each rejection, auto-correct lowercase streams and prepare a stream-wise report.

ISC Practical 2027: Digital Lock Security Code Analyzer – Algorithm and Java Program
Fully solved ISC Computer Science Practical 2027 number-logic question: for a 5 to 10 digit security code, find the first and last digits, odd and even position sums, product of non-zero digits, digit frequency and classify the code as STRONG, MODERATE or WEAK.

String Methods in Java for ICSE Class 10: 25 Output Questions with Answers
ICSE Class 10 Computer Applications practice on String class methods: length, charAt, indexOf, lastIndexOf, substring, replace, trim, compareTo, equals and more, with 25 board-style output questions and step-by-step answers.