¡@

Home 

java Programming Glossary: heapclass

Does the Java primitives go on the Stack or the Heap?

http://stackoverflow.com/questions/3646632/does-the-java-primitives-go-on-the-stack-or-the-heap

be on the heap. public class Test private static class HeapClass public int y When an instance of HeapClass is allocated this.. static class HeapClass public int y When an instance of HeapClass is allocated this will be on the heap. public static void main.. example int y would actually be part of each instance of HeapClass . Whenever an instance of HeapClass is allocated e.g. new HeapClass..