O'Reilly logo

Learn Java for Android Development by Jeff JavaJeff 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 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, ...

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