Domanda di colloquio di Tudip Technologies

What is finally? Finalize().

Risposta di colloquio

Anonimo

25 giu 2017

finally is a block of statement which is used with try catch but it's optional, in finally block we write those statements which should be executed before the program terminates, while finalize is a method which called by JVM to deallocate the memory.

4