6.4.3
The Members of an Interface Type  . . . . . . . . . . . . . . . . . . . . . . . 87
6.4.4
The Members of an Array Type . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6.5
Determining the Meaning of a Name . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
6.5.1
Syntactic Classification of a Name According to Context. . . . . . 90
6.5.2
Reclassification of Contextually Ambiguous Names. . . . . . . . . . 91
6.5.3
Meaning of Package Names. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.5.3.1
Simple Package Names  . . . . . . . . . . . . . . . . . . . . . . . 93
6.5.3.2
Qualified Package Names. . . . . . . . . . . . . . . . . . . . . . 93
6.5.4
Meaning of Type Names  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.5.4.1
Simple Type Names . . . . . . . . . . . . . . . . . . . . . . . . . . 93
6.5.4.2
Qualified Type Names  . . . . . . . . . . . . . . . . . . . . . . . . 94
6.5.5
Meaning of Expression Names  . . . . . . . . . . . . . . . . . . . . . . . . . . 95
6.5.5.1
Simple Expression Names . . . . . . . . . . . . . . . . . . . . . 95
6.5.5.2
Qualified Expression Names  . . . . . . . . . . . . . . . . . . . 96
6.5.6
Meaning of Method Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
6.5.6.1
Simple Method Names . . . . . . . . . . . . . . . . . . . . . . . . 98
6.5.6.2
Qualified Method Names . . . . . . . . . . . . . . . . . . . . . . 98
6.6
Qualified Names and Access Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
6.6.1
Determining Accessibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
6.6.2
Details on
protected
 Access . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6.6.3
An Example of Access Control . . . . . . . . . . . . . . . . . . . . . . . . . 100
6.6.4
Example: Access to
public
 and Non 
public
 Classes . . . . . . . 101
6.6.5
Example: Default Access Fields, Methods, and Constructors. . 102
6.6.6
Example:
public
 Fields, Methods, and Constructors . . . . . . . . 103
6.6.7
Example:
protected
 Fields, Methods, and Constructors . . . . . 104
6.6.8
Example:
private
 Fields, Methods, and Constructors . . . . . . . 105
6.7
Fully Qualified Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.8
Naming Conventions  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6.8.1
Package Names  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.8.2
Class and Interface Type Names  . . . . . . . . . . . . . . . . . . . . . . . . 108
6.8.3
Method Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
6.8.4
Field Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.8.5
Constant Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.8.6
Local Variable and Parameter Names  . . . . . . . . . . . . . . . . . . . . 110
7
Packages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
7.1
Package Members. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
7.2
Host Support for Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
7.2.1
Storing Packages in a File System . . . . . . . . . . . . . . . . . . . . . . . 115
7.2.2
Storing Packages in a Database . . . . . . . . . . . . . . . . . . . . . . . . . 117
7.3
Compilation Units  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
7.4
Package Declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
7.4.1
Named Packages  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
7.4.2
Unnamed Packages  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
7.4.3
Scope and Hiding of a Package Name . . . . . . . . . . . . . . . . . . . . 120
7.4.4
Access to Members of a Package. . . . . . . . . . . . . . . . . . . . . . . . 120
7.5
Import Declarations  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
7.5.1
Single Type Import Declaration  . . . . . . . . . . . . . . . . . . . . . . . . 121
ix






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