O'Reilly logo

Learn Java for Android Development, Second Edition by Jeff Friesen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required