Difference between JVM(Java Virtual Machine) and DVM(Dalvik Virtual Machine)

 Difference between JVM(Java Virtual Machine) and DVM(Dalvik Virtual Machine)

Dalvik Virtual Machine

What is DVM

Difference between DVM and JVM

DVM (Dalvik Virtual Machine) JVM (Java Virtual Machine)
1 It is Register based which is designed to run on low memory. It is Stack based.
2 DVM uses its own byte code and runs the “.Dex” file. From Android 2.2 SDK Dalvik has got a Just in Time compiler JVM uses java byte code and runs “.class” file having JIT (Just In Time).
3 DVM has been designed so that a device can run multiple instances of the VM efficiently. Applications are given their own instance. A single instance of JVM is shared with multiple applications.
4 DVM supports the Android operating system only. JVM supports multiple operating systems.
5 For DVM very few Re-tools are available For JVM many Re-tools are available.
6 There is a constant pool for every application. It has a constant pool for every class.
7 Here the executable is APK. Here the executable is JAR.

Comments

Post a Comment

If you have any query, please let us know