Meaningless Drivel is fun!*
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 Android Security Essentials Live Lessons this week in the Android 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.
Consider Paul's rocket mass heater.
subject: Static variables must store ?
Similar Threads
this is about static.
static variable inside static function
wrapper classes
final static variables in beans?
By convention - are there for exemple first variables, second getters and setters and third methods?