Question d’entretien chez BlackBerry

What is the difference between final, finally and finalize?

Réponse à la question d'entretien

Utilisateur anonyme

14 mars 2015

A final class can not be subclassed. A final variable can not be assigned another value. finally is a clause of a try block that will always be run. finalize() will be called by the garbage collector when it removes a class that no longer has references.

1