Created
September 18, 2020 12:09
-
-
Save damithadayananda/61bda38ce2039e2a7dbdff99f0eae4df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface javaNineInterface { | |
String JAVA_VERSION = "9"; | |
default void logVersion(String msg){ | |
log(msg); | |
} | |
default void logAuthor(String msg){ | |
log(msg); | |
} | |
private void log(String msg){ | |
System.out.println(msg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment