Java, Spring, Microservices, Interview, Coding.
will improve the worst case performance from O(n) to O(log n). Try catch finally related question What is finalize method? Finalize method: A method inherited from the Object class, called just before an object is garbage collected. Used for cleanup activities like releasing resources (files,