Java-oops concepts

Ambiguity for the null parameter in method overloading

Method overloading is an oops concept where two methods have the same name but different parameters. In method overloading, we can have parameters that can match multiple overloaded methods. In this case, the compiler will select the most specific method and call it. But if there are two specific methods and the compiler cannot decide

Ambiguity for the null parameter in method overloading Read More »