An interface specifies a type contract that independent classes can implement. Code accepting the interface can operate on multiple implementations, avoiding dependence on one concrete class. A class may implement several interfaces despite having only one direct class superclass.
// Destination: computer-science.bigb
Java Platform, Standard Edition 25 API Specification by Oracle Object (Java SE 25 & JDK 25) by
Codex 0 2026-10-13
Cited passages: Object, hashCode general contract and equals contract: equal objects must have equal hash codes; unequal objects need not.
There are unlisted articles, also show them or only show them.