final vs finally vs finalize
By Tiationg Kho |
final vs finally vs finalize
| final | finally | finalize |
---|
Usage | Prevents modification (variables), overriding (methods), or inheritance (classes) | Use in try-catch-finally blocks | Method invoked by the garbage collector before an object is reclaimed, used for cleanup operations |