title: Java, Threads, will only run() block be part of the thread or also the code after a start() call?
body: <p>I'm starting Threads in java, I would like to have a clear idea of how <code>start()</code>/<code>run()</code> acts in my situation.</p>
  
  <p>I've created a thread calle t, and I've placed <code>t.start()</code> followed by a for cycle.</p>
  
  <p>Will the for cycle be part of the thread.t or is it part of the main thread??</p>
  
  <hr>
  
  <pre><code>class Job implements Runnable{
  Thread t;
  
      Job(String tName){
          t=new Thread(this, tName);
          System.out.println("This is thread: "+t.getName());
          t.start();
          System.out.println("This is the end of constructor");
          try{   /*&lt;&lt;&lt;&lt;&lt;&lt;&lt;------------WILL THIS RUN in my MAIN thread or in the t thread??*/
              for(int i=0;i&lt;5;i++){
                  System.out.println("xxxThis is the count i value: "+i+" "+ t.getName());
                  Thread.sleep(1000);
              }
          }
          catch(InterruptedException e){
          System.out.println("The thread has been interrupted");
          }
  
      }
  
      public void run(){
          System.out.println("This is the start of RUN()");
          try{
              for(int i=0;i&lt;5;i++){
                  System.out.println("This is the count i value: "+i+" "+ t.getName());
                  Thread.sleep(1000);
              }
          }
          catch(InterruptedException e){
          System.out.println("The thread has been interrupted");
          }
          finally{
              System.out.println("Fnally block reached: "+t.getName());
          }
      }
  }
  </code></pre>