Chapter 9. Basic Utility Classes
If you’ve been reading t his book sequentially, you’ve read all about the core Java language constructs, including the object-oriented aspects of the language and the use of threads. Now it’s time to shift gears and talk about the Java Application Programming Interface (API), the collection of classes that comes with every Java implementation. The Java API encompasses all the public methods and variables in the classes that make up the core Java packages. Table 9.1 lists the most important packages in the API and shows which chapters in this book discuss each of the packages.
Table 9-1. Packages of the Java API
|
Package |
Contents |
Chapter |
|---|---|---|
|
|
Basic language classes |
4, 5, 6, 7, 8, 9 |
|
|
Reflection |
7 |
|
|
Input and output |
10 |
|
|
Utilities and collections classes |
9, 10, 11 |
|
|
International text classes |
9 |
|
|
Sockets and URLs |
11, 12 |
|
|
The applet API |
20 |
|
|
Swing and 2D graphics |
13, 14, 15, 16, 17 |
|
|
Event classes |
13, 14, 15 |
|
|
2D image-processing classes |
18 |
|
|
JavaBeans API |
19 |
|
|
RMI classes |
11 |
As you can see in Table 9.1, we’ve
already examined some of the classes in java. lang
in earlier chapters on the core language constructs. Starting with
this chapter, we’ll throw open the Java toolbox and begin
examining the rest of the classes in the API.
We’ll begin our exploration ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access