Java / Data types
Is Java primitive data type stored on stack or heap?
Primitive types declared locally will be on the stack while primitive types that are defined as part of an object instance are stored on the heap.
Local variables are stored on stack while instance and static variables are stored on the heap.
More Related questions...