What is difference between final, finally and finalize?
Page 1 of 1
What is difference between final, finally and finalize?
final: final is a keyword, final can be variable, method or class.You, can't change the value of final variable, can't override final method, can't inherit final class.
finally: finally block is used in exception handling. finally block is always executed.
finalize():finalize() method is used in garbage collection.finalize() method is invoked just before the object is garbage collected.The finalize() method can be used to perform any cleanup processing.
Similar topics
» What is the purpose of finalize() method?
» What is finally block?
» Can finally block be used without catch?
» Is there any case when finally will not be executed?
» Can we access the non-final local variable, inside the local inner class?
» What is finally block?
» Can finally block be used without catch?
» Is there any case when finally will not be executed?
» Can we access the non-final local variable, inside the local inner class?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|