This content has been marked as final. Show 2 replies
The exact same rules for multithreading apply to both static and non-static methods--if the method accesses any shared variables that might be accessed by another thread, and if you need atomicity or need threads to see each others' updates of those variables, then you need to synchronize.
In your particular example, there are no shared variables, so it doesn't matter.
Thanks a lot