---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 17 Edition"
java_version: 17
chapter: "Chapter 8. Classes"
section: "8.4.8.4"
heading: "8.4.8.4. Inheriting Methods with Override-Equivalent Signatures"
parent: "8.4.8. Inheritance, Overriding, and Hiding"
source: https://docs.oracle.com/javase/specs/jls/se17/html/jls-8.html#jls-8.4.8.4
id: "8.4.8.4"
url: https://jvm.obfuscated.software/jls/se17/8.4.8.4.html
raw: https://jvm.obfuscated.software/jls/se17/8.4.8.4.md
---

# 8.4.8.4. Inheriting Methods with Override-Equivalent Signatures

It is possible for a class to inherit multiple methods with override-equivalent signatures ([§8.4.2](8.4.2.md)).

It is a compile-time error if a class C inherits a concrete method whose signature is override-equivalent with another method inherited by C.

It is a compile-time error if a class C inherits a default method whose signature is override-equivalent with another method inherited by C, unless there exists an `abstract` method declared in a superclass of C and inherited by C that is override-equivalent with the two methods.

This exception to the strict default-`abstract` and default-default conflict rules is made when an `abstract` method is declared in a superclass: the assertion of abstract-ness coming from the superclass hierarchy essentially trumps the default method, making the default method act as if it were `abstract`. However, the `abstract` method from a class does not override the default method(s), because interfaces are still allowed to refine the *signature* of the `abstract` method coming from the class hierarchy.

Note that the exception does not apply if all override-equivalent `abstract` methods inherited by C were declared in interfaces.

Otherwise, the set of override-equivalent methods consists of at least one `abstract` method and zero or more default methods; then the class is necessarily an `abstract` class and is considered to inherit all the methods.

One of the inherited methods must be return-type-substitutable for every other inherited method; otherwise, a compile-time error occurs. (The `throws` clauses do not cause errors in this case.)

There might be several paths by which the same method declaration is inherited from an interface. This fact causes no difficulty and never, of itself, results in a compile-time error.
