By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

where are statics variables stored

P: 6
where are statics variables stored?

static variables and static methods can be used without creation of objects
so in which part of memory is static stored
plz help me
Apr 8 '08 #1
Share this Question
Share on Google+
8 Replies


hsn
100+
P: 237
hsn
i have never thought of it. it is a good question.
i will search about it.
why don't you do the same thing.

thanks for the question
hsn
Apr 8 '08 #2

P: 6
i have never thought of it. it is a good question.
i will search about it.
why don't you do the same thing.

thanks for the question
hsn



i am trying hard to find it but not getting
please let me know if you find it
Apr 8 '08 #3

100+
P: 539
where are statics variables stored?

static variables and static methods can be used without creation of objects
so in which part of memory is static stored
plz help me
I am confused about your question....

What is the purpose of knowing this?

Is this your assignment? :)

maybe this
could help you out....

sukatoa...
Apr 8 '08 #4

BigDaddyLH
Expert 100+
P: 1,216
Does it matter where they're stored? The semantics should be enough, right?
Apr 8 '08 #5

hsn
100+
P: 237
hsn
it wont hert if we learc where these data are sstored.
we will understand more.........


hsn
Apr 9 '08 #6

P: 6
statics are stored on heap precisely on special part of heap called
" permanent generation "
Apr 9 '08 #7

P: 6
I am confused about your question....

What is the purpose of knowing this?

Is this your assignment? :)

maybe this
could help you out....

sukatoa...


Static variables are stored on the heap precisely on a special part of heap called "permanent generation"
Apr 9 '08 #8

BigDaddyLH
Expert 100+
P: 1,216
it wont hert if we learc where these data are sstored.
we will understand more.........


hsn
I suppose if you learn that static variables are stored in location "X' then by definition you've learned more. But what if later you learn that static variables are actually stored in a different location "Y"? Deep understanding comes from reasoning from semantics, not from implementation details.
Apr 9 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Browse more Java Questions on Bytes