A static and class variable are one and the same thing. They are shared by all instances of the servlet, and are never thread-safe, even if the SingleThreadModel interface is implemented (multiple threads may access the same static variable from different servlet instances).
Perhaps you wanted to know the difference between class and
instance variables in a servlet? Instance variables are also not thread-safe as they can be shared by more than one
thread servicing the same servlet instance. They are thread-safe, however, if the SingleThreadModel interface is implemented since only one thread may service an instance at a time.
Hope this helps.
Mark.