In the above application, the instance variable as well as parameter have the exact same name: age. Right here, the Java compiler is baffled owing to call ambiguity.For that reason, it isn't going to make a difference which kind you employ during the declaration of the thing, the actions will be the same. Ways to Refer a subclass object There's two