Standard Library Subset

Android supports a relatively large subset of the Java Standard Edition 6.0 library. Some things were left out because they simply didn’t make sense, and others were omitted because better APIs are available that are specific to Android. As noted earlier, a few Java 7 features are supported in newer versions of Android starting with Android 4.4 (KitKat), including the AutoClosable interface and @SafeVarargs. In general, though, Java 7 and 8 additions to the library API aren’t supported, including the new filesystem API (NIO 2.0), Fork and Join, and invokedynamic.

Supported

The following standard packages are supported in Android. Consult the Java 2 Platform Standard Edition 6.0 API documentation[89] for information on ...

Get Hello, Android, 4th Edition 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.