Computer Science, asked by satagr, 1 year ago

what are methods in java ?
what are formal parameters and actual parameters

Answers

Answered by mokshil1
5
A part of a program which is used simultaneously at different instances in a program to perform a specific task, is known as method or function

The parameters, described in the method header used to receive values from its caller are known as FORMAL PARAMETERS.
The methods actually passed to the method at the time of its call are known as ACTUAL PARAMETERS.

HOPE IT HELPED ☺
Similar questions