Method Overloading
Same method name, different parameter lists.
functionspolymorphismjavaUpdated 2025-09-01
Purpose
- Improve API readability for related actions.
Resolution
- Compiler picks best match via signature.
Example
- int area(int a){ return a*a; }
- int area(int a,int b){ return a*b; }