Which of the following statements about Stack Memory in Java is true?

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments