I am new to Android but experienced in Java. In Java when we do this:
MyClass myObj = new MyClass();
It clearly does the following:
- Inserts the memory pointer
myObj
upto the stack - Allocates a new space for object of type
MyClass
in the heap - Appoints this new space's reference to
myObj
But I am a little bit confused about the following questions:
- But in Android, does this work in the same way?
- Does Android have full stack and heap memories?
- Does Android have Java Virtual Machine (JVM) for my Java app (Android app) to work on?
Thanks a lot!