6.5.1
Syntactic Classification of a Name According to Context
NAMES
6.5.1   Syntactic Classification of a Name According to Context
A name is syntactically classified as a
PackageName
 in these contexts:
In a package declaration ( 7.4)
In a type import on demand declaration ( 7.5.2)
To the left of the  
.
  in a qualified
PackageName
To the left of the  
.
  in a qualified
TypeName
A name is syntactically classified as a
TypeName
 in these contexts:
In a single type import declaration ( 7.5.1)
In an
extends
 clause in a class declaration ( 8.1.3)
In an
implements
 clause in a class declaration ( 8.1.4)
In an
extends
 clause in an interface declaration ( 9.1.3)
As a
Type
 (or the part of a
Type
 that remains after all brackets are deleted) in
any of the following contexts:
N
In a field declaration ( 8.3,  9.3)
N
As the result type of a method ( 8.4,  9.4)
N
As the type of a formal parameter of a method or constructor ( 8.4.1,
 8.6.1,  9.4)
N
As the type of an exception that can be thrown by a method or constructor
( 8.4.4,  8.6.4,  9.4)
N
As the type of a local variable ( 14.3)
N
As the type of an exception parameter in a
catch
 clause of a
try
 statement
( 14.18)
N
As the class type of an instance that is to be created in a class instance cre 
ation expression ( 15.8)
N
As the element type of an array to be created in an array creation expression
( 15.9)
N
As the type mentioned in the cast operator of a cast expression ( 15.15)
N
As the type that follows the
instanceof
 relational operator ( 15.19.2)
90






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved