Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:16:50+00:00 2026-05-26T16:16:50+00:00

I am learning java and right now i am stuck at memory allocation of

  • 0

I am learning java and right now
i am stuck at memory allocation of object’s and local variables.
can any one illustrate or clear some of my doubts??

  1. I read about Heap and Stack Memory for Object’s instance
    Variable’s and Local Variable’s. I have question whether a new
    STACK is being created for each method?? or for each class of a
    single stack is used by a whole class??
  2. I had read that ONE STACK
    is being created by every thread What is means

Thanks
Mahaveer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:16:50+00:00Added an answer on May 26, 2026 at 4:16 pm
    • Each thread has a private stack.
    • Each method has a private stack frame within that thread’s stack.

    Stacks are associated with thread in a one-to-one mapping. Stacks are absolutely not associated with methods and classes.

    The way to reason about all this is that the local variables of a method are private to each invocation of that method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning Java right now but I'm wondering if there is a hierarchy of
I am learning Java using Java how to program (Deitel and Deitel). Right now
I am learning java ee right now. I have successfully implemented a hello-world style
I'm learning Java programming and right now I'm exploring the use of objects in
I am learning Java, theres one thing I do not understand.. in the main
I'm learning Java, and I know one of the big complaints about newbie programmers
I'm learning Java here, and using a GLabel object. It's in the ACM Graphics
I'm learning C++ right now using Bruce Eckel's Thinking in C++ and I'm in
I am learning LISP right now and I haven't found anything on how to
We're learning file input and output in my programming class right now, but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.