final vs finally vs finalize

final vs finally vs finalize

finalfinallyfinalize
UsagePrevents modification (variables), overriding (methods), or inheritance (classes)Use in try-catch-finally blocksMethod invoked by the garbage collector before an object is reclaimed, used for cleanup operations