Difference between finally and finalize

finally block is used in exception handling.   try {         //code that may or may not throw exception, goes here } catch(Exception e) {     //handling exception } finally {     //Code goes here }   The finally block executes after a section of code in a method. For example, if you have code that might ...