{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

PPT07_Packages_and_JARs - Packages and Java Archive Files...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Packages and Java Archive Files Definitions Package A package is a logical grouping of classes. Jar A JAR is a Java Archive file in compressed format that consists of a group of classes, packages, and multimedia files that are part of an application or applet. Used to distribute applications Packages Group classes into packages Categorize classes into logical groupings and make a package for each group Build packages that contain sets of classes designed to be used together Collect classes together for convenient distribution Packages can be grouped into subpackages Common groupings An application can be a single package and/or multiple sub-packages Create a package for an application and have a sub package for each tier of the application. A sub-package for UI classes A sub-package for PD classes A sub-package for DA classes A sub-package for Servlet classes A package corresponds to a folder. The folder must have the same name as the package. Example: To create a package called Battleship: create a folder called battleship.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}