Below interface define in default package 

```
public interface Foo{  
}  

```

---

```
package com.code  
public class  MyClass implements Foo{  
}

```

---

Above code will give following compilation error:  

Foo can not be resolved to type  

why???