Finalize « Language Basics « Java






1.Using finalize() to detect an object that hasn't been properly cleaned up
2.Ensuring proper cleanupEnsuring proper cleanup
3.Demonstrate how finalize() methods and shutdownHooks interactDemonstrate how finalize() methods and shutdownHooks interact