🎴 Flashcard Mode

Java Programming Fundamentals

Card1 / 20
Mastered0
Review0
QuestionClick to flip

finalize method is used to release system resources.

AnswerClick to flip back
A
True
💡 Explanation:

The finalize() method is intended as a finalization hook for releasing system resources (file handles, network connections, native memory) before an object is garbage collected. However, it's deprecated since Java 9 due to unreliability - better to use explicit resource management or try-with-resources. The statement is technically true about its purpose. Note: This is a duplicate of 141360.

Change Mode