Chapter    8

Exploring the Basic APIs Part 2

The standard class library’s java.lang package provides many basic APIs, which are designed to support language features. You encountered APIs for mathematics, string management, and packages in the previous chapter. In this chapter I introduce you to those basic library APIs that pertain to the primitive type wrapper classes, threads, and system capabilities.

Exploring the Primitive Type Wrapper Classes

The java.lang package includes Boolean, Byte, Character, Double, Float, Integer, Long, and Short. These classes are known as primitive type wrapper classes because their instances wrap themselves around values of primitive types.

Note   The primitive type wrapper classes are also known as value classes ...

Get Learn Java for Android Development, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.