Reading article about java 8 static
and default
interface methods, and i found
Java interface static method is visible to interface methods only,
so my guess is that static interface methods will not inherited by the concrete classes
at the same articel
We can’t define interface static method for Object class methods, we will get compiler error as “This static method cannot hide the instance method from Object”. This is because it’s not allowed in java, since Object is the base class for all the classes and we can’t have one class level static method and another instance method with same signature.
if interfaces are not inherited from Object
class and static interface methods
will not be inherited by the concrete class, Why we can’t define interface static method for Object class methods
EDIT
why we can't add public static int hashCode(){//SOME_CODE;}
into interface?