Top Description Fields Constructors
java.lang

public Class OutOfMemoryError

extends VirtualMachineError
Class Inheritance

Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector. OutOfMemoryError objects may be constructed by the virtual machine as if suppression were disabled and/or the stack trace was not writable.
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
OutOfMemoryError()

Constructs an OutOfMemoryError with no detail message.

public
OutOfMemoryError(String
the detail message.
s
)

Constructs an OutOfMemoryError with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.VirtualMachineError.serialVersionUID.

Annotations
@Serial

Constructor Detail

OutOfMemoryErrorback to summary
public OutOfMemoryError()

Constructs an OutOfMemoryError with no detail message.

OutOfMemoryErrorback to summary
public OutOfMemoryError(String s)

Constructs an OutOfMemoryError with the specified detail message.

Parameters
s:String

the detail message.