X hits on this document

133 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 views133
Page views133
Page last viewedTue Jan 17 06:25:35 UTC 2017
Pages46
Paragraphs816
Words2901

Comments