I am new to Android but experienced in Java. In Java when we do this:
MyClass myObj = new MyClass();
It clearly does the following:
myObj upto the stackMyClass in the heapmyObjBut I am a little bit confused about the following questions:
Thanks a lot!
Android re-implemented the Java Virtual Machine with their own Dalvik Virtual Machine. Unlike the JVM which is stack-based, Dalvik is register based. You can see a comparison between the two here:
http://en.wikipedia.org/wiki/Dalvik_(software)#Performance
Yes Dalvik VM has a heap just like the JVM - just not a stack. It is 100% compatible with any Java 1.6 source code (1.7 support is slowly coming, and preliminary support is available in Android Studio). So in your 3 steps:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With