Basic HTML version of Foils prepared June 5 99

Foil 50 Packages

From Java Language in the Computer Science Curriculum ADMI Tutorial Duluth Minnesota -- June 3 99. by Geoffrey C. Fox


1 A package is a collection of classes.
2 Java directly associates the names of classes and packages with the directory (folder) structure:
  • A package must in be a directory or folder of that name
  • A public class must be in a file of that name. Note that a file may contain other (non-public) classes.
3 Packages of classes may be defined by users as well as forming the structure of the remaining Java libraries.
4 What we have seen so far is all there is to the base language Java (with the exception of Exceptions and Threads!). All of the rest of Java functionality comes as classes defined in packages that come with the language. Even for threads and exceptions, much of power is Java runtime support.
5 Java runtime or Java VM on a given machine is library that supports Java functionality

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Jun 5 1999