Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Static variables must store ?" Watch "Static variables must store ?" New topic
Author

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: http://aspose.com/file-tools
 
subject: Static variables must store ?
 
Similar Threads
wrapper classes
static variable inside static function
By convention - are there for exemple first variables, second getters and setters and third methods?
final static variables in beans?
this is about static.