Java System .runFinalizersOnExit ( boolean value)
Syntax
System.runFinalizersOnExit(boolean value) has the following syntax.
@Deprecated public static void runFinalizersOnExit(boolean value)
Example
In the following code shows how to use System.runFinalizersOnExit(boolean value) method.
/*from ww w . j a v a 2 s. co m*/
public class Main {
public static void main(String[] args) throws Exception {
System.runFinalizersOnExit(true);
}
}