O'Reilly logo

The Java® Language Specification, Java SE 7 Edition, Fourth Edition by Alex Buckley, Gilad Bracha, Guy Steele, Bill Joy, James Gosling

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.5. Member Type Declarations

A member class is a class whose declaration is directly enclosed in another class or interface declaration.

A member interface is an interface whose declaration is directly enclosed in another class or interface declaration.

The accessibility of a member type in a class declaration is specified in §6.6.

It is a compile-time error if a member type declaration has more than one of the access modifiers public, protected, and private.

Member type declarations may have annotation modifiers (§9.7) like any other type or member declaration.

The scope and shadowing of a member type is specified in §6.3 and §6.4.

If a class declares a member type with a certain name, then the declaration of that type is said to hide any and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required