jeudi 30 juillet 2015

Java 8 : Invoke Interface's static method using reflection

I want to invoke static method of Java 8 interface using reflection API.

public interface TimeClient {
    static void testStatic() {
        System.out.println("In the Static");
    }
}

I am able to invoke default method of Interface but unable to invoke static method.





Aucun commentaire:

Enregistrer un commentaire