Chapter 6

Exploring the Basic APIs Part 1

Aspiring Android developers need to acquire a solid understanding of foundational Java APIs. You have already encountered a few of these APIs, such as the Object and String classes and the Throwable class hierarchy. This chapter introduces you to additional language-oriented (basic) APIs pertaining to math, packages, primitive types, and the garbage collector.

NOTE: Chapter 6 explores basic API classes and interfaces that are located in the java.lang, java.lang.ref, and java.math packages.

Math APIs

Chapter 2 presented Java's +, -, *, /, and % operators for performing basic arithmetic on primitive type values. Java also provides classes for performing trigonometry and other advanced math operations, ...

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

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