formal parameter - an argument specified when declaring or defining a function.
actual parameter is the argument passed to the function when it is called.
public double myFunction(int a,double b)// int a, double b - formal parameters of the myFunction method
{
//do something
}
public static void main(String[] args) {
myFunction(5, 3.14); // 5, 3.14 - actual parameters of the myFunction method
}
Comments
Leave a comment