Skip to content

Instantly share code, notes, and snippets.

@swetharnaik
Created May 29, 2021 07:30
Show Gist options
  • Save swetharnaik/a6168c839de741a46baa9d9f2f49408e to your computer and use it in GitHub Desktop.
Save swetharnaik/a6168c839de741a46baa9d9f2f49408e to your computer and use it in GitHub Desktop.
Java 11 - Calling interface default method
public class Calculator implements Calculate {
public static void main(String[] args) {
Calculate calculator = new Calculator();
System.out.println(calculator.doCalculation(4,1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment