Define a final class in java A class declared as final cannot be extended further by any other class. The best example of such a class is the String class.
Declaring the class as final has further implications too:
The methods of a final class cannot be overridden. They can be ‘inlined' though. This way you may be able to overcome the performance issue caused due to the final class.