Write a program to Method Overloading in Java.

 

Output: