Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Advantage of DVM over JVM  RSS feed

 
sai ma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sai ma
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you pramod...
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!