You might face questions about Overloading in most of the Java interviews. Overloading is nothing but implementing ‘n’ of methods with the same name in a Java class, but they must have different method signature. What is method signature in Java ? In java, method signature is as follows.
methodName(argtype arg1,argtype arg2)
Example : calculate (int a, int b) --> Method signature.
Note: Return type doesn’t include […]