Java Runtime .traceMethodCalls ( boolean on)

Syntax

Runtime.traceMethodCalls(boolean on) has the following syntax.

public void traceMethodCalls(boolean on)

Example

In the following code shows how to use Runtime.traceMethodCalls(boolean on) method.


/*ww w  .  jav a 2s . c o m*/


public class Main {

  public static void main(String[] args) {


      Runtime.getRuntime().traceMethodCalls(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