File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Advantage of DVM over JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Advantage of DVM over JVM" Watch "Advantage of DVM over JVM" New topic
Author

Advantage of DVM over JVM

sai ma
Greenhorn

Joined: Mar 17, 2010
Posts: 5
Hi everybody, I am very new to Android.

If Android applications are developed in Java, why did they develop Dalvik Virtual Machine (DVM) for Android instead making use of

JVM which is already available? and what are differences b/w both?
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 611

JVM requires lot of memory and in mobile resources are very limited. therefore it is not possible to have all classes and methods which are present in core java used in Mobile applications.


Life is easy because we write the source code.....
sai ma
Greenhorn

Joined: Mar 17, 2010
Posts: 5
Thank you pramod...
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1355

Dalvik is a highly customized Virtual machine for Android. If you have ever visited the Android FAQs page, you will find links to a few resources which detail Android's DVM.

In general, Dalvik is register based virtual machine and the regular Virtual machines from Sun(both for desktop and KVM) is Stack based. AFAIK, these are two separate architectures for designing a VM and the question as to whether which of them is better is akin to the "RISC versus CISC" debate. There are numerous articles on the internet ; google "Virtual machine Showdown"

You have have to worry about this too much, IMO.


[List of FAQs] | [Android FAQ] | [My Blog]
 
 
subject: Advantage of DVM over JVM
 
developer file tools