Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
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.
public OutOfMemoryError()Constructs an OutOfMemoryError with no detail message.
public OutOfMemoryError(String s)Constructs an OutOfMemoryError with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.