title: Threads ends when run finish?
body: <p>I want to know if a thread in java closes itself when run method ends.</p>
  
  <p>I mean, I have a new thread declaration:</p>
  
  <pre><code>new Thread(new SubmitDataOnBackground(handler.getIDValue(), data, this.context)).start();
  </code></pre>
  
  <p>And then, in SubmitDataOnBackground I have this run method:</p>
  
  <pre><code>public void run() {
      SubmitDataHandler submit = new SubmitDataHandler(ID, data, this.context);
      submit.buildAndSubmitData();
  
  }
  </code></pre>
  
  <p>After buildandSubmitData finishes, does the thread close itself or I have to add any code somewhere?</p>
  
  <p>I am not sure if I am leaving a new thread opened each time I call this method or it is ok.</p>
  
  <p>My application is a server so it will never ends because it is active the whole time. I just want to know the amount of threads is not outnumbered because it just creates new ones without closing the others when finish. </p>