Local classes

Hi everybody, Why cannot we provide static members in local classes?ByJFan
[102 byte] By [JFana] at [2007-11-26 15:35:46]
# 1
If "local class" is to mean "inner class": make the class static, then it's possible.
quittea at 2007-7-8 21:53:22 > top of Java-index,Java Essentials,Java Programming...
# 2
I know that we cannot provide static members in local classes( Class in a non static method and non static top level class)But I want ot know th reason why is this not possible?
JFana at 2007-7-8 21:53:22 > top of Java-index,Java Essentials,Java Programming...
# 3
> I know that we cannot provide static members in local> classes( Class in a non static method and non static> top level class)> > But I want ot know th reason why is this not possible?Check the JLS for questions like this.
macrules2a at 2007-7-8 21:53:22 > top of Java-index,Java Essentials,Java Programming...
# 4
Ok, in a non-static nested class, members may be static if they're final, too. http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#262890
quittea at 2007-7-8 21:53:22 > top of Java-index,Java Essentials,Java Programming...