Home : Course Map : Chapter 5 : Java
Chapter 5 : More OOP in Javatm
JavaTech
Course Map
Chapter 5
File/Package/Import
  Demo 1
  Demo 2
Access/Visibility
final & Constants
Static Import
Jar Files
  Demo 3
Applet Directories
3rd Party Packages
CLASSPATH
javadoc
CodingConventions
Exercises

    Supplements
Scope
Debug Techniques
Java Runtime
Class Class
JVM Instructions 2
JVM Processing
pack200

     About JavaTech
     Codes List
     Exercises
     Feedback
     References
     Resources
     Tips
     Topic Index
     Course Guide
     What's New

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

            Tech
DecimalFormat
  Demo 1
  Demo 2

System.out.printf
  Demo 3
CJ Format Class
  Demo 4   Demo 5
Other Format Tools

Immutable Complex
Exercises

           Physics
Interpolation
Integration
  Demo 1
Simpson Rule
  Demo 2
Exercises

  Part I Part II Part III
Java Core 1  2  3  4  5  6  7  8  9  10  11  12 13 14 15 16 17
18 19 20
21
22 23 24
Supplements

1  2  3  4  5  6  7  8  9  10  11  12

Tech 1  2  3  4  5  6  7  8  9  10  11  12
Physics 1  2  3  4  5  6  7  8  9  10  11  12

Java is a trademark of Sun Microsystems, Inc.