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);
  }
}




















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable