This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I posted this mistakenly at a wrong forum. Hope to get some help this time. Learning through HFSJ by K&B. Following is my query from the same.
The jsp standard action:
In the generated servlet, translates to:
Following are my 2 beans:
But i notice that the reference variable personBean which is of the superclass type is able to access (and set) the subclass bean functions like setEmpId() which are not overridden. From previous knowledge I understand that dynamic dispatch happens only for overridden functions. Is eveything fine here. Please throw some light.
Sincerely hoping this time I have posted it correctly