I guess answer would be
SubCafe4Java
SubCafe4Java
But when i run the programme it shows
SuperCafe4Java
SuperCafe4Java
We are calling
superFoo.get("super") i.e., superclass reference with subclass object in it, also parameter "super" is a
String object. So it is more appropriate to call subclass get() but why superclass get() called?
I can't understand.... thanks in advance for any help...