difference between finalize() and finally() in java...
Answers
Answered by
0
Finally is a block which always executes when the try block
exits. It is executed even if an unexpected exception occurs. It used in Exception
Handling.
Finalize is a method which is used b4 an object is garbage collected, the runtime system calls its finalize() method. Resources release code in Finalize() method before getting garbage collected.
Finalize is a method which is used b4 an object is garbage collected, the runtime system calls its finalize() method. Resources release code in Finalize() method before getting garbage collected.
Answered by
1
Similar questions