The question you should ask yourself is: can they be modified (nearly) at the same time by different threads. If yes, they are not thread safe.
While private
shields again the arbitrary stranger messing with your variables directly, this arbitrary stranger may be using public methods of that class to cause changes.
Harald.
> The question you should ask yourself is: can they be
> modified (nearly) at the same time by different
> threads. If yes, they are not thread safe.
>
> While private
shields again the
> arbitrary stranger messing with your variables
> directly, this arbitrary stranger may be using public
> methods of that class to cause changes.
>
>Harald.
I hate it when arbitrary stragers mess with my privates.