What is a final class?

John Zukowski

When you declare a class to be final, it can never be subclassed. This is usually done for security or performance reasons.

public final class Math {
  // ...
}

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact