No, a static variable lives for as long as the classloader which loaded the class does. So that's "forever" in many applications.
It's not clear what you're trying to achieve, but this code is almost certainly a bad idea.
(In general, mutable static data is a bad idea. And mutable static non-private fields are a really bad idea - you can't possibly control all access for synchronization purposes, apart from anything else.)