The Android SDK’s Java implementation includes packages that exactly follow Oracle’s API specifications. You’ll see no differences between, say, the classes in the java.lang package such as String, Integer, and other type helper classes. It’s the implementation of these classes and packages that differs between Oracle’s and Android’s virtual machines. Up through the current version of Android, Marshmallow, Android’s Java implementation is based on the now-discontinued Apache Harmony project. Starting in the next version of Android, which will have a code name starting with the letter N, implementations of these packages will based on OpenJDK, a free and open source version of Java Standard Edition that’s provided directly by Oracle.
- [Voiceover] The Android SDK's Java implementation…includes packages that exactly follow…Oracle's API specifications.…You'll see no differences between, say,…the classes in the java.lang package,…such as String, Integer, and other core helper classes.…It's the implementation of these classes and packages…that can differ.…Up through the current version of Android,…as of the time of this recording, Android 6 Marshmallow,…Android's Java implementation…was based on the now discontinued Apache Harmony project.…
Starting in the next version of Android,…which will have a code name starting with the letter N,…implementations of these packages will be based on OpenJDK,…a free and open source version of Java Standard Edition…that's provided by Oracle.…Google's intention to move to OpenJDK had just…become publicly known when this course was recorded,…and we don't know everything…about how this change might affect Android developers.…But it's important to understand…that both the current Android implementation and OpenJDK…
Watch these Java tutorials to learn smarter, more efficient methods for Android app development.
- Preparing the development environment
- Packaging and running Android apps
- Optimizing Java code for Android
- Implementing event handler interfaces
- Defining custom callback methods
- Working with the Android SDK's Java packages
- Storing data
- Reading text files
- Parsing JSON and XML data
- Managing device sensors
- Playing audio