You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intmultiply(inta, intb); //abstract is automatically added for interface methods(all non static)
staticintadd(inta, intb){ // but not for static methods, but these are perfectly valid
returna+b;
}
//abstract int div (int a, int b); //this would be valid if this interface is not a functional interface (interface with only 1 abstract method), invalid otherwise
/*int subtr(int a, int b){ // non static (instance) methods are not allowed