I have a code which I believe is callback implementation. Can you please provide your more experienced opinions on whether this is a good way to callback?public interface Callback {    void run();}Test of callback with anonymous functionpublic class Test {    static void method (Callback callback){        callback.run();    }    public static void main(String[] args) {        method(new Callback() {            @Override            public void run() {                System.out.println(Printed!);            }        });    }}
Is this a proper callback implementation in Java?
java;callback