Packages  This Package  Prev  Next  Index  

§1.57 Class OutOfMemoryError

public  class  java.lang.OutOfMemoryError
    extends  java.lang.VirtualMachineError  (I-§1.63)
{
        // Constructors
    public OutOfMemoryError();	§1.57.1
    public OutOfMemoryError(String  s);	§1.57.2
}
Thrown when the Java Virtual Machine is out of cannot allocate an object because it is out of memory, and no more memory could be made available by the garbage collector.


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

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com