TOC  This Package  Prev  Next  Index  

§1.55 Class OutOfMemoryError

public class java.lang.OutOfMemoryError
    extends java.lang.VirtualMachineError (§1.61)
{
    public OutOfMemoryError();	§1.55.1
    public OutOfMemoryError(String s);	§1.55.2
}
The Java runtime throws an instance of this class if an attempt to allocate an object failed because the runtime could not find enough space to allocate the object.


Constructors

OutOfMemoryError
public OutOfMemoryError()
Constructs an OutOfMemoryError with no detail message.

OutOfMemoryError
public OutOfMemoryError(String s)
Constructs an OutOfMemoryError with the specified detail message.

Parameters:
s - the detail message


TOC  This Package  Prev  Next  Index
Java API Document
Last edited by dkramer on April 11, 1996
Copyright © 1996 Sun Microsystems, Inc. Send any comments or corrections to dkramer@sun.com