6 ms·
Since Java 8, there are default interface method implementations: https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html https://docs.oracle.com
by ognyankulev 4y ago
Since Java 8, there are default interface method implementations: https://docs.oracle.com/javase/tutorial/java/IandI/defaultmethods.html https://docs.oracle.com/javase/tutorial/java/IandI/defaultme... . You can add any method to interface in backward-compatible way if you also define default implementation.