Pergunta de entrevista da empresa Google

Was ist der Unterschied zwischen "finally", "final" und "finalize" in Java?

Resposta da entrevista

Sigiloso

28 de fev. de 2013

Finally - block of code that is always executed, exception when the program exits. Used in exception handling Final - is a keyword that makes: - a variable unchangeable - a method un-override-able - a class un-inheritable Finalize() - is a method used in garbage collection and it is called just before an object is garbage collected. This method can be used for cleanup.