Sollicitatievraag bij BlackBerry

What is the difference between final, finally and finalize?

Antwoord op sollicitatievraag

Anoniem

14 mrt 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