Hi Zulfiqar,
1. The logic seems to be that local inner classes are not members and the static modifier can only be applied to members.
... local inner classes are not members of the class...therefore they cannot be private, protected, public or static .. because these modifiers apply only to class members.
The Java Programming Language: Second Edtion pg 53
2. Local inner classes can inherit static members of the class they extend.
The above compiles and, when run, prints: Static var: 10. So local inner classes behave as you'd expect re: inheritance.
Hope that helps.
------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiousity.
-- Dorothy Parker