4

Possible Duplicate:
What can you not do on the Dalvik VM (Android’s VM) that you can in Sun VM?

What ever interviews i have faced.In every interview when interviewers come on android topic they ask this question. "what is the difference between Dalvik VM vs Sun JVM?". i have given some answers like. What can you not do on the Dalvik VM (Android's VM) that you can in Sun VM?

but i think they wanted more.

Community
  • 1
  • 1
Vivart
  • 14,900
  • 6
  • 36
  • 74
  • 3
    If you want more, start a bounty on that question then. Don't ask a dupe. See also http://blog.stackoverflow.com/2010/06/improvements-to-bounty-system/ – polygenelubricants Aug 25 '10 at 09:12
  • i think this question is a different question.difference between A and B is not only what you can't do with A. – Vivart Aug 25 '10 at 09:25

1 Answers1

1

Are you sure they're not referring to the differences in the APIs? I mean both JVMs are turing complete, so basically they can do the same things.

One internal difference is that the sun JVM is stack-based, while Dalvik is register based. (It has an infinite number of registers though.) But that doesn't really explain what you can/can't do on it.

aioobe
  • 413,195
  • 112
  • 811
  • 826
  • you are right with "sun JVM is stack-based, while Dalvik is register based" i don't want can/can't. in that post also some differences are given so i have given the example of that post. – Vivart Aug 25 '10 at 09:23