- All Implemented Interfaces:
public class OutOfMemoryError extends VirtualMachineError
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.
OutOfMemoryErrorobjects may be constructed by the virtual machine as if suppression were disabled and/or the stack trace was not writable.
- See Also:
OutOfMemoryErrorpublic OutOfMemoryError()Constructs an
OutOfMemoryErrorwith no detail message.
(String s)Constructs an
OutOfMemoryErrorwith the specified detail message.
s- the detail message.