title: When does local variable of class annotated with @Component goes out of memory?
body: <p>If I have a class annotated with @Component in spring boot application, and various threads are running on application and all are accessing on local variable of @Component class, will it be same variable or every thread will make it's own copy?
  How does @Component annotation really works and when does the local variable become empty?
  Let's say I have <code>Set&lt;String&gt;</code> in class, when will this set become empty?</p>
  <pre><code>@Component 
  class testing {
    Set&lt;String&gt; localSet;
    Set&lt;String&gt; getString(){ return localSet;}
  }
  </code></pre>
  <p>If I insert some random data in localSet, when will the data be deleted here?</p>