The methods declared in java.lang.Object class can not be override in Java 8 default methods. It is forbidden to define default methods in interfaces for methods in java.lang.Object.
Default interface methods can be overwritten in classes implementing the interface and the class implementation of the method has a higher precedence than the interface implementation, even if the method is implemented in a superclass. Since all classes inherit from java.lang.Object, the methods in java.lang.Object would have precedence over the default method in the interface and be invoked instead.
|