@Deprecated public static void runFinalizersOnExit(boolean run){
  SecurityManager sm=System.getSecurityManager();
  if (sm != null) {
    sm.checkExit(0);
  }
synchronized (hooksList) {
    finalizeOnExit=run;
  }
}

@ Deprecated public static void runFinalizersOnExit ( boolean run ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { sm . checkExit ( 0 ) ; } synchronized ( hooksList ) { finalizeOnExit = run ; } }
ensure that , when the virtual machine is about to exit , all objects are finalized . note that all finalization which occurs when the system is exiting is performed after all running threads have been terminated .
