Which of the following statements about Stack Memory in Java is true?
It is used for allocating objects
It is shared by all threads
It stores data that can be accessed across threads
It is cleared automatically when a method execution ends
This question is part of this quiz :