File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
Java in General
Where do local variables in static methods live?
Joined: Dec 31, 2003
Jun 14, 2004 07:40:00
Static methods and static variables are loaded when the class is loaded. This means both go on the heap. Right?
How about local variables in static methods? Is a stack frame generated for static methods? Why else do they not get default values? (I'm not a CS major
Joined: Dec 10, 2001
Jun 14, 2004 14:21:00
Moving this to the Intermediate forum...
How To Ask Good Questions
JavaRanch FAQ Wiki
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Where do local variables in static methods live?
Do static variables, methods impose a penalty
static variable inside static function
variable scope question/confusion
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013