Doubt in Java interface implements
<pre><code>interface Device
{
  public void doIt();
}

public class Electronic implements Device
{
   public void doIt()
   {
   }
}

abstract class Phone1 extends Electronic
{
}
abstract class Phone2 extends Electronic
{
   public void doIt(int x)
   {
    }
}

class Phone3 extends Electronic implements Device
{   
    public void doStuff()
    {
     }
}
</code></pre>

<p>Can any one tell me why this compiles.. Because  "Phone3" implements Device and it should have doIt() method but it does not have. But still this compiles. May i know Y?</p>
