I have some doubt when to declare class as final. while I googling about it then I get to know that it will help full for security reason same as string immutable with help of SO POST[1].
As I know final variable initialize once. just example:
final int i=10;
i=11; //give compile time error
becauseThe final local variable i cannot be assigned. It must be blank and not using a compound assignment
But when I created the final class variable multiple time. it is allowing me to do that. if it allow me to create more than one instance of final class then how can I say it's final?
can you give some example of final class through it fulfill some business logic needs?
If I am not wrong than is primitive re-initialization not allow but object allow to create multiple time.