Class Shared{ public void sharedMethod(Object o){ //does something to Object } } //this is how threads call the shared method run(){
If you call the same method in multiple threads, and pass it the same object, that object is absolutely not safe.