Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.lang
Class Runtime

    java.lang.Object
      java.lang.Runtime

    public class Runtime

extends Object

Minimalist version of the standard Java Runtime class.

Author:
  Paul Andrews

Method Summary
`long` | `freeMemory()` Return the amount of free memory.on the heap
`static Runtime` | `getRuntime()` Get the single instance of us.
`long` | `totalMemory()` Return the size of the heap in bytes.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait`

Method Detail

### getRuntime

    public static Runtime getRuntime()

  Get the single instance of us.

### freeMemory

    public long freeMemory()

  Return the amount of free memory.on the heap

  Returns:
    the free memory in bytes

### totalMemory

    public long totalMemory()

  Return the size of the heap in bytes.

  Returns:
    the free memory in bytes

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD