Q:
why overriding finalize() method?
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.
View answer
Workspace
Report Error
Discuss