MY mENU


Monday 6 February 2012

Difference between DVK and Jvm


Dalvik Virtual machine:
                     (DVM) is Register Architecture, designed to run on low memory, uses its own byte code and runs .Dex file (Dalvik Executable File)




Java Virtual Machine:
                        (JVM) is Stack Architecture, uses java byte code and runs .class file having JIT.
Java  source code is compiled by the Java compiler into .class files. Then the dx (dexer) tool, part of the Android SDK processes the .class files into a proprietary file format called DEX that contains Dalvik bytecode.

Difference between .class and .dex file format
                 ● In DEX all the classes of the application are packed into one file.
                 ● All the classes in the same DEX file share field, method, etc if they are same.
                 ● Classes from the same DEX file are loaded by the same class loader instance.


                     see Difference between DVM and JVM as Video

1 comment:

Post a Comment