Java Data Type Tutorial - 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.



public class Main {

  public static void main(String[] args) throws Exception {

    System.runFinalizersOnExit(true);
  }
}