File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Final class
It's not a secret anymore!