Originally posted by Pawan preet:
What is the actual use of finalization process?
Can we use finalize() method for any purpose?
I know only this much that finalization is a process that is executed just before Garbage Collection.
Instead i have used ..> Runtime.getRuntime().addShutdownHook <.. like code for saving my data just before the program stopped due to some exception thrown.
Please give your comments.