threads+CNI+SIGINT
Cedric Berger
cedric@wireless-networks.com
Mon Mar 27 08:11:00 GMT 2000
Oskar Liljeblad wrote:
> How do you deal with objects that override the finalize method,
> needing special finalization?
Finalization must only be used for releasing resources like memory,
syncronization objects, ... which means that its main use is for
native methods.
One exit, the OS will take care of freeing theses resources anyway,
with or without running finalization.
Override the finalize method for, say, closing a socket or a file is not
a good programming practice.
Cedric
More information about the Java
mailing list