Interviewer And Interviewee Guide

Analyst Integration Interview Question:

Explain heap and stack in a process?

Submitted by: Administrator
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.
Submitted by:

Read Online Analyst Integration Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.