I don't think so...More than just the variables are stored in the stack, but I don't think you can find out what exactly. It may even be dependent on which exact implementation of the JVM you are using.
A better answer would be "Why does it matter?"
Never ascribe to malice that which can be adequately explained by stupidity.
Joined: Mar 05, 2008
The javap tool can tell you this, using the -verbose option. At least, it can tell you about what the compiled class file says the stack usage should be. It's possible for HotSpot to modify this at runtime, I suppose. But I doubt it will change too much. Unless you use the funky JVM options like -XX:+DoEscapeAnalysis.