We don\'t have any destructor in Java as we have in C++.
Q1. How should we clean up any Object in java.
Q2. Is there any a
You could also add a shutdown hook to your program, if your program is shutting down too:
//add shutdown hook Runtime.getRuntime().addShutdownHook(new Thread() { public void run() { ThirdPartyTerminate(); } });