Final Classes - cannot be subclassed
Final Methods - cannot be overridden in a subclass
Final Variables - cannot be reassigned
Bonuses:
finally - The
finally block always executes when the try block exitsObject.finalize() method - Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.
No comments:
Post a Comment