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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.