Packages  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


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