Compiler error: Type mismatch when assigned interface variable to a class
<p>I have a strange problem i don't know if i miss something. Here is my code</p>

<pre><code>public interface Book{
}

public class MyBook implements Book
{
}

public static void main(String[] args)
{
   Book b = new MyBook();  // compiler error: Type mismatch ....
} 
</code></pre>

<p>Can somebody explains to me is this really a compiler error or just my eclipse is acting weird?</p>

<p>Thanks,</p>
