posted 15 years ago
As the purpose of using final keyword before any class name, mqy be:
purpose 1. to make that class not extendiable further, or
purpose 2. to make that class immutable, by removing setter method from it.
My question is:
If I don't want to use 'final' keyword before any class name; can I achieve the above purposepurpose 1 by declaring its constructor as private ?