Signals that the interpreter has run out of memory (and that garbage collection is unable to free any memory).
public class OutOfMemoryError extends VirtualMachineError {
// Public Constructors
public OutOfMemoryError();
public OutOfMemoryError(String s);
}
Object->Throwable(Serializable)->Error->VirtualMachineError->OutOfMemoryError