http://www.javaworld.com/javaqa/1999-08/01-qa-static2.html
There are 2 types of classes.
Top-level class, and Inner class.
there are 4 types Inner classes:
1. Anonymous
2. local class--it is like local variables. local classes aren't allowed to be declared public, protected, private, or static.
3. Member class : this is the only one you can declare static
class TopLevelClass{
class MemberClass
}
4. Nested top-level
class TopLevelClass{
static class MemberClass
}
new TopLevelClass.MemberClass
No comments:
Post a Comment