Class Shared{ public void sharedMethod(Object o){ //does something to Object } } //this is how threads call the shared method run(){
Yes, but only in two scenarios:
o
Otherwise - no, since the internal state of the object can be changed by multiple threads concurrently.