Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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....
  2. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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...
  3. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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...
  4. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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...
  5. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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...
  6. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    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...
  7. Replies
    24
    Views
    1,990

    [SOLVED] Re: Stack Memory question (understanding)

    What issue with non-static variables were you having?
Results 1 to 7 of 7