posted 16 years ago
I would say that the variable itself is threadsafe, but if it's a reference variable and the object it refers to is mutable, then that object may not be threadsafe. Unless it's designed to be threadsafe.
More generally, this is true for any final variable, not just static variables. If they're final and primitive, or final and referring to an immutable class, then they're thread-safe. Otherwise they're probably not thread-safe (unless you determine otherwise through more detailed analysis).
"I'm not back." - Bill Harding, Twister