No subject
Sat Nov 12 19:29:10 PST 2005
"static fields, methods, and classes are "top-level" constructs, and it
is therefore reasonable that they only be defined at the "top level"...
It is clearer (and therefore required) to define all static members
within a top-level class."
laszlo
Russell Politzky wrote:
>
> Java does not allow static members in inner class (ie. non-static inner
> classes). Why not? Can
> anyone give me a good explanation as to why this is not allowed.
>
> P.S. I know that "only members of interfaces and top-level classes can be
> static", but I'de like to understand why this is.
>
> ---
> To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
> To get help, mail advanced-java-help at xcf.berkeley.edu
---
To unsubscribe, mail advanced-java-unsubscribe at xcf.berkeley.edu
To get help, mail advanced-java-help at xcf.berkeley.edu
More information about the Advanced-java
mailing list