interface A {
  void print();
}
class A implements A {
  public void print() {
    System.out.println("Hello");
  }
  public static void main(String args[]) {
    A a=new A();
    a.print();
  }
}
When i am using this code then it is saying "duplicate class:A". Why so? Can I not have same class and interface name
 
     
     
    