Reference Answer:
Final is a modifier that can be used to modify classes, variables, and methods. A class cannot be inherited after it has been decorated. After modifying a variable, the value of the basic datatype variable cannot be changed after its initial assignment. The address of the reference that was originally assigned to the reference datatype variable cannot be changed, but the content of the reference object can be changed. Methods cannot be overridden after they have been decorated.
Finally is a keyword in the Java exception handling mechanism that needs to be used in conjunction with the try. The code in the finally block is executed whether or not the code in the try block is abnormal. It is used to close connections and release resources.
Finalize is a method in Object class that is called when Garbage Collection (GC) is executed. Calling this method actively does not cause the object to be reclaimed, but we can override the method to perform some other resource frees during GC execution.