Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class OutOfMemoryError

Constructors

public  class  java.lang.OutOfMemoryError
    extends  java.lang.VirtualMachineError  
{
        // Constructors
    public OutOfMemoryError();	
    public OutOfMemoryError(String  s);	
}

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.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.