> interface declarations java ~ Online tutorial

interface declarations java

Interface Declarations
An interface declaration specifies a new named reference type. There are two
kinds of interface declarations
1)normal interface declarations
2)annotation type declarations:
InterfaceDeclaration:


NormalInterfaceDeclaration
AnnotationTypeDeclaration

Annotation types are described further in .

NormalInterfaceDeclaration:


InterfaceModifiersopt interface Identifier TypeParametersopt
ExtendsInterfacesopt InterfaceBody


The identifiers  in an interface declaration specifies the name of the interface. A
compile-time error occurs if an interface has the same simple name as any of its
enclosing classes or interfaces.

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: