File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Abstract class VS final class? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Abstract class VS final class?" Watch "Abstract class VS final class?" New topic
Author

Abstract class VS final class?

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 602
What is the usage of final class?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 9950
    
    6

A final class cannot be extended. It lets you maintain control of your class, preventing someone from making a subclass that doesn't do what you want. The String class is a common example of a final class.


Never ascribe to malice that which can be adequately explained by stupidity.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract class VS final class?
 
Similar Threads
StringBuffer Class
alternative for interface
What to do ??
Stringbuffer vs. String
Why can't I create a instance of Math class?