Primitive data type values stored in stack memory - Wrapper classes

Q.  Where does the primitive data type values be stored?
- Published on 16 Jul 15

a. Heap Memory
b. Stack Memory
c. Both A & B
d. None of the above

ANSWER: Stack Memory
 

    Discussion

  • Prajakta Pandit   -Posted on 15 Dec 15

    - Stack memory stores the values of primitive data type.

    - It always follow the LIFO(Last-In-First-Out) order.

    - Stack memory size is less compared to heap memory.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)