What is difference between this codes in java 8 :
This :
public class Hello {
    public static void sayHello() {
        System.out.println("ghasedak.Hello !!!");
    }
}
and this :
public interface Hello {
    public static void sayHello() {
        System.out.println("ghasedak.Hello !!!");
    }
}
This is main class :
public class MainClass {
    public static void main(String[] args) {
            Hello.sayHello(); //for function
            Hello.sayHello(); //for class
    } 
}
 
     
    