Final Classes
A final class cannot be subclassed. This is done for reasons of security and efficiency. Accordingly, many of the Java standard library classes are final, for example java.lang.System and java.lang.String. All methods in a final class are implicitly final.
Example:
public final class MyFinalClass {...} public class ThisIsWrong extends MyFinalClass {...} // forbiddenRestricted subclasses are often referred to as "soft final" classes.
Read more about this topic: Final (Java)
Famous quotes containing the words final and/or classes:
“The final aim is not to know, but to be.... Youve got to know yourself so that you can at last be yourself. Be yourself is the last motto.”
—D.H. (David Herbert)
“We deny your internationalism, because it is a luxury which only the upper classes can afford; the working people are hopelessly bound to their native shores.”
—Benito Mussolini (18831945)