The final keyword prevents child classes from overriding a method by prefixing the definition with final . If the class itself is being defined final then it cannot be extended.