How does Java handle memory allocation for primitive types such as int or char?

Last Updated :
Discuss
Comments

How does Java handle memory allocation for primitive types such as int or char?

They are stored in Heap Memory

They are stored in Stack Memory

They are stored in the Method Area


They are allocated in Permanent Generation

Share your thoughts in the comments