Java, Programming, Coding, Development, Object Oriented.
final class logically represent a complete class which should not be extended further. Sometime, final is used to prevent someone from extending key classes for security purpose. For example, java.lang.String has been made final in Java, so that no one can extend it and change its behavior. Why?