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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Final class" Watch "Final class" New topic
Author

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,
Sitaraman
[ January 07, 2008: Message edited by: David O'Meara ]
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

thanks,
Dave
David O'Meara
Rancher

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: http://aspose.com/file-tools
 
subject: Final class
 
Similar Threads
Interfaces and Access Modifiers
When to use final variables
final!
Which access modifier should you use for constants?
final keyword for method parameters