final class in java

http://stackoverflow.com/questions/5181578/use-of-final-class-in-java

A final class is simply a class that can’t be extended.

It’s useful if you for instance write a class which you intend to be immutable. (String does this for instance.) You do it mainly for efficiency and security reasons.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s