Local object are used as method parameter then that objects are not thread safe. why?
<p>The only exception is of course, if one of the methods called with the LocalObject as parameter, stores the LocalObject instance in a way that allows access to it from other threads. Please calrify me on this. how its work.</p>

<pre><code>public void someMethod(){

  LocalObject localObject = new LocalObject();

  localObject.callMethod();

// localObject is not threadsafe
  method2(localObject);
}

public void method2(LocalObject localObject){
  localObject.setValue("value");
}
</code></pre>
