title: The method start() is undefined for the type Runnable
body: <p>I am learning java 8 with anonymous classes,
  i cant find start method,
  am i doing something wrong here?</p>
  <pre><code>class Tester {
      
      void doWork() {
          
          Runnable r = new Runnable() {
  
              @Override
              public void run() {
                                  
              }
              
          };
          
          r.run();
          r.start(); // showing ERR The method start() is undefined for the type Runnable
      }
      
  }
  </code></pre>
  <p>this works fine,</p>
  <pre><code>// Here we can extends any other class 
  class Test extends Geeks implements Runnable { 
      public void run() 
      { 
          System.out.println(&quot;Run method executed by child Thread&quot;); 
      } 
      public static void main(String[] args) 
      { 
          Test t = new Test(); 
          t.m1(); 
          Thread t1 = new Thread(t); 
          t1.start(); 
          System.out.println(&quot;Main method executed by main thread&quot;); 
      } 
  }
  </code></pre>