Java Reference
In-Depth Information
Figure 4-5. A diagram showing the complete inheritance hierarchy
Put simply:
class wins
. The motivation for this decision is that
default
methods are de-
signed primarily to allow binary compatible API evolution. Allowing classes to win over any
default
methods simplifies a lot of inheritance scenarios.