Results 1 to 3 of 3

Thread: Stack Or Heap

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Stack Or Heap

    Hi,

    I would like to know if the following are stored in the heap or stack memory? (using the eclipse Java)

    Code:
    String s;
    s ?

    Code:
    s = hello.changeString("Test")
    s ?

    Code:
    Int n;
    n?

    Code:
    public int goalInt(int nNew){
    b = nNEW;
    return nNEW + 2
    }
    nNEW ?


    Thanks
    Last edited by met0555; Jan 16th, 2011 at 09:31 PM.

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: Stack Or Heap

    ummm My guess would be the string goes on the heap while the ints go on the stack.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  3. #3
    PowerPoster abhijit's Avatar
    Join Date
    Jun 1999
    Location
    Chit Chat Forum.
    Posts
    3,228

    Re: Stack Or Heap

    You should read this article:
    Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
    save a blobFileStreamDataTable To Text Filemy blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width