aspose file tools*
The moose likes Java in General and the fly likes Final class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Final class" Watch "Final class" New topic

Final class

sita raman subra
Ranch Hand

Joined: Apr 09, 2007
Posts: 47
What is the use of Final Class.

Practically where we use it in our application?

Thanks & Reagrds,
[ January 07, 2008: Message edited by: David O'Meara ]
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Please don't shout. Excessive use of capital letters is considered poor etiquette.

David O'Meara

Joined: Mar 06, 2001
Posts: 13459

You use it when you don't want a class to be extended.

java.lang.String and the Number classes are final to prevent someone tinkering with them and making them behave in ways that are not expected. Other immutable classes are final to prevent people adding mutable behaviour.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Final class