|
This chapter provides a number of practical tools and techniques.
- Java Files &Packages -
how class file rules and how files are organized into packages,
which are the Java version of libraries. Also,
- Namespace -
how Java avoids confusion amon similarly named classes.
- import
- tell compiler where to look for files.
- Access rules - how variables and methods
can be hidden or made visible to methods in other classes.
- Constants - the final
modifier prevents a property value from changing.
- Static Import - added in Java
5.0, the static import directive shortens the code needed to invoke
a static method or access a static variable.
- JARs - "zip" compressed files
that hold classes in a compact form.
- CLASSPATH
- how classes can find other classes and packages.
- Applet Directories - putting
applet classes into sub-directories.
- 3rd Party Packages - using
packages in various locations.
- javadoc
- automatic docmentation of packages and classes.
- Coding Conventions - a
set of suggested coding conventions to maintain a consistent style
that is helpful with reading and debugging programs.
Latest Update: Oct. 22, 2004
|
|
|