title: How local objects are thread safe in Java thread?
body: <p>I kept on reading local objects are thread safe in Java if it's not been passed to another thread.
  can someone explain why it's thread safe because objects are not maintain ed in stack?
  also an example/pattern how someone can pass local object to another thread?</p>