Skip to content

Instantly share code, notes, and snippets.

@RishiPrakash
Created November 17, 2018 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RishiPrakash/04ec6ffc3a634d0f665dd5deab4fdc36 to your computer and use it in GitHub Desktop.
Save RishiPrakash/04ec6ffc3a634d0f665dd5deab4fdc36 to your computer and use it in GitHub Desktop.
package testJavaDS;
interface A{
static void method() {
System.out.println("method A");
}
}
interface B{
static void method() {
System.out.println("method B");
}
}
public class InterfaceTest implements A,B{
public static void main(String[] s) {
A.method();
B.method();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment