This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Static variables must store ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static variables must store ?" Watch "Static variables must store ?" New topic

Static variables must store ?

Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
Hi all i had read in a book that static variables lived inside the class .i want to know where this variables are get stored in stack or heap ?

thanks in advance

Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Eurig Jones
Ranch Hand

Joined: Feb 05, 2008
Posts: 57
Static variables are stored in the Heap.
I agree. Here's the link:
subject: Static variables must store ?
It's not a secret anymore!