Actually Static variables stored in a specific space in the memory called PermGen
, this area holds you static variables once you used them. and if you want to use it again it will get them from that space with out re-creating them again.
But this space could get filled during the execution time, here the GC
will start collect and delete some references from it, in this case if your variable got delete by GC
and you want to use it again it will be created again.
You can read more about PermGen