What are the 3 ways a Java method must match with its defini
What are the 3 ways a Java method must match with its definition and call?
Solution
The three ways are:
1. Name of the method must be exactly same in definition and call.
2. The number of variables mentioned in the function definition must be same as function call.
2.The type of variables mentioned in the function definition must be same as function call.

