Home » Interview » Technology

why overriding finalize() method?

Correct Answer: If constructor opens the file finalize() method closes that file If constructor opens the connection finalize() method closes that connection To perform finalization operation we must overriding finalize method

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion