The following methods are not available in Java SE 11:
java.lang.Runtime.runFinalizersOnExitjava.lang.System.runFinalizersOnExitThe removed methods were not replaced because the use of finalizers was decided unsafe in multithreaded solutions. Ensure your code is not reliant on the use of finalizers. There is no certainty that finalizers will execute during garbage collection. To avoid using finalizers use explicit dispose methods and finally blocks to release an objects resources.
For java.lang.System Javadoc, see
java.lang.System.
For java.lang.Runtime Javadoc, see
java.lang.Runtime.
For more information on Java SE 11 changes, see
Removed APIs in JDK 11.