Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
J10 Packages

J10 Packages

Ratings: (0)|Views: 14 |Likes:
Published by eragol

More info:

Published by: eragol on Feb 28, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/28/2010

pdf

text

original

 
1
J10 Packages andJ10 Packages andClass pathClass path
 
2
What are Packages?
A package is a grouping of related types providingaccess protection and name space management
 –
Note that types refers to classes, interfaces,enumerations, and annotation types.
 –
Types are often referred to simply as classes andinterfaces since enumerations and annotation types arespecial kinds of classes and interfaces, respectively, sotypes are often referred to simply as classes andinterfaces.
 
3
Benefits of Packaging
You and other programmers can easily determine thatthese classes and interfaces are related.
You and other programmers know where to find classesand interfaces that can provide graphics-relatedfunctions.
The names of your classes and interfaces won't conflictwith the names in other packages because thepackage creates a new namespace.
You can allow classes within the package to haveunrestricted access to one another yet still restrictaccess for types outside the package.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->