title: Getting error in Eclipse: syntax error on token start identifier expected
body: <p>I am getting a strange error while creating a simple thread program in JAVA using Eclipse. The code is:</p>
  
  <pre><code>package threadshow;
  
  public class Thread_Show extends Thread{
  
  public void run(){
      System.out.println("Inside the thread");
  }
   }
  
   class Thread_Definition{
  Thread_Show ts=new Thread_Show();
  ts.start();  //Getting the error here
  }
  </code></pre>
  
  <p>I am getting error "syntax error on token start identifier expected" in the line <code>ts.start();</code>. Why am I getting this?</p>
  
  <p><strong>EDIT</strong> I have used the code from <a href="http://tutorials.jenkov.com/java-concurrency/creating-and-starting-threads.html#thread-subclass" rel="nofollow">http://tutorials.jenkov.com/java-concurrency/creating-and-starting-threads.html#thread-subclass</a></p>