WHAT HAPPENS BEHIND THE SCENE – FINALIZE() METHOD?

“What is the purpose of finalize() method?” is one of the often asked Java interview questions. The typical answer to it is: “Usual purpose of finalize() method is to perform cleanup actions before the object is discarded”. However, behind the scene, finalize() method are handled in a special way. A small mistake in finalize() method has the potential to jeopardize entire application’s availability. Let’s study it in detail.

Continue reading “WHAT HAPPENS BEHIND THE SCENE – FINALIZE() METHOD?”

Blog at WordPress.com.

Up ↑