Interview Questions

What are the rules to overload a method?

The overloaded methods should have the following properties,

1. Can use the same method name.
2. Access Modifier can be changed.
3. Return type of the method can be changed.
4. Should have variable number of method parameters.
5. Overloaded method can throw the wider checked exceptions.