This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
can anybody explain memory allocation for static contents?
for example i hav 5 classes and i hav static variable and static methods in all classes..
so memory to those all static wiil be stored at same location and only once..all objects use that memory
My satement is crrect or not??
I'm not sure what you're looking for. It will be stored in whatever memory location is available. Just like any variable, you can't predict the specific address of the memory block it will be stored in. The location isn't relative to anything else in your code.
Really, once that class is a part of your program, any memory it allocates is just overhead. It's nothing you need to manage.