X hits on this document

119 views

0 shares

0 downloads

0 comments

31 / 46

© S. Uchitel, 2004

31

Packages

The problem:

The standard Java class library contains 2500+ classes!

This doesn’t include the thousands of classes on the Web!!!

We need a mechanism for organising them!

The Solution: Packages

Groups a set of Java classes.

A package may contain other packages: hierarchical naming structure.

java.lang (contains class String and others)

java.util (contains class Random and others)

kenya.io (contains class InputReader and others

uk.ac.ic.doc.su2.university (contains class Lecturer and others)

Document info
Document views119
Page views119
Page last viewedFri Dec 09 10:28:42 UTC 2016
Pages46
Paragraphs816
Words2901

Comments