Java SE and the dalvik virtual machine

Java SE and the dalvik virtual machine

Java SE and Dalvik Virtual Machine (DVM) are both virtual machines that can run on different platforms. However, they are not the same thing.

Java SE is the standard edition of the Java platform, which includes a set of APIs (Application Programming Interfaces) for developing desktop and server applications. Java SE is designed to be portable across multiple platforms, allowing developers to write code once and run it on different operating systems.

On the other hand, the Dalvik Virtual Machine is the virtual machine that runs Android applications. Dalvik was specifically designed for mobile devices and is optimized for low memory and CPU usage. Unlike Java SE, which uses bytecode, Dalvik uses a different format called Dalvik Executable (DEX). DEX files are optimized for the limited resources available on mobile devices and are more compact than Java bytecode.

One of the reasons for the development of Dalvik was to avoid licensing fees associated with the Java platform. While Java SE is developed and maintained by Oracle, Dalvik is developed and maintained by Google as part of the Android Open Source Project (AOSP). In summary, while both Java SE and Dalvik are virtual machines that can run Java code, they are designed for different purposes and use different formats for their bytecode. Java SE is designed for desktop and server applications, while Dalvik is optimized for mobile devices and is used to run Android applications.

Apply for Android Apps certification!

https://www.vskills.in/certification/certified-android-apps-developer

Back to Tutorials

Share this post
[social_warfare]
The Android Platform
The Android project Folder structure

Get industry recognized certification – Contact us

keyboard_arrow_up