I've posted the below example and output of the "method local inner class" , i provided the subclass of Boo in zoo() method of Bar1 class and also overridden the
test method. I was expecting the second output as "method local inner class test". But the second output comes as "Boo class test". Can anyone explain me how it works?
Output:
----------
Boo class apple
Boo class test