Analyst Integration Question: Download Integration Programmer PDF

Explain heap and stack in a process?

Tweet Share WhatsApp

Answer:

They are two separate areas of memory in same process. Talking about Java, stack is used to store primitive values and reference type to object but actual object is always created in heap. One critical difference between heap and stack is that, heap memory is shared by all threads but each thread has their own stack.

Download Integration Programmer PDF Read All 41 Integration Programmer Questions
Previous QuestionNext Question
Can you please explain the difference between value type and a reference type?Explain revision/version control?