Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. Local variables are stored in stack whereas object variables are stored in heap.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   jvm   memory management   stack memory   heap memory expert|
|Why do member variables have default values whereas local variables don't have any default value ?|
|Difference between Stack and Heap memory ?|