JVM Datatypes
Values of primitive types are stored in the stack.
Reference types contain pointers to the heap on either objects or arrays.
public void method{
int x = 4;
float y = 0.32f;
Rectangle rect = new Rectangle(10,10);
}
Previous slide
Next slide
Back to first slide
View graphic version