Writing final classes Declaring an entire class final is allowed in java.If a class is declared as final can’t be subclassed. It is a very useful for immutable classes such as String class in java. [crayon-5d37c0c2df48a150624136/] Writing final methods You can use final keyword in a method declaration to indicate that the method can’t be