I think you're confused about how references get stored on a stack. They aren't stored one after another, directly on a stack. They are stored in a stack frame, which is then stored on the stack....
Type: Posts; User: KevinWorkman
I think you're confused about how references get stored on a stack. They aren't stored one after another, directly on a stack. They are stored in a stack frame, which is then stored on the stack....
So your question was about the stack data structure and not the thread stack this whole time?
Your understanding is not correct. Pointing a reference to null does not affect the method stack...
I am saying that it probably doesn't matter, and most of the questions you're asking don't make a lot of sense.
In your example, s is an int and cannot be null.
Each thread has a stack. Each...
How would you delete s? And what does this have to do with the stack? And how has this lead to problems in your code?
Again, I think you're confused about the basics, and you're asking questions...
I think you're really confused about what you mean when you say "stack". A stack is a data structure, and things like method calls are indeed represented by a stack data structure. But you as the...
The questions you asked are pretty much answered by a quick google of "java method stack". What exactly are you confused about?
The reason we're asking you about your actual problem is that it...
What issue with non-static variables were you having?