What is Daivik virtual machine?

Dalvik Virtual Machine:


EditThe official language for Android development is Java.
JDK(Java Development Kit) will compile our Java code and it is going to produce a file called .class file. Also called as Java bytecode.

Java bytecode is platform independent code because it can run on multiple platforms.

In android DVM takes this Java bytecode as input and it is going to produce a lightweight file called .dex file.

Dex is termed as Dalvik Executable Code.

With Android Version 2.2 (Froyo) Google introduced JIT(Just in Time ) compilation in Dalvik.

Till Android Version 5.0 Dalvik was the runtime use by Android which is being replaced byART(Android Run Time) in later versions.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s