Suppose we have two overridden versions of a method.
One accepts int as argument like someMethod(int i).
Other accepts Long as arguments like someMethod(Long i).
If we pass float as argument i.e. someMethod(float Numeber) which one will be called?
It won’t compile unless you do a cast.