|
-
Jan 16th, 2011, 09:23 PM
#1
Thread Starter
Frenzied Member
Stack Or Heap
Hi,
I would like to know if the following are stored in the heap or stack memory? (using the eclipse Java)
s ?
Code:
s = hello.changeString("Test")
s ?
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.
-
Jan 17th, 2011, 04:17 AM
#2
Re: Stack Or Heap
ummm My guess would be the string goes on the heap while the ints go on the stack.
.
-
Jan 18th, 2011, 04:37 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|