KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > lang > OutOfMemoryError


1 /*
2  * @(#)OutOfMemoryError.java 1.21 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.lang;
9
10 /**
11  * Thrown when the Java Virtual Machine cannot allocate an object
12  * because it is out of memory, and no more memory could be made
13  * available by the garbage collector.
14  *
15  * @author unascribed
16  * @version 1.21, 12/19/03
17  * @since JDK1.0
18  */

19 public
20 class OutOfMemoryError extends VirtualMachineError JavaDoc {
21     /**
22      * Constructs an <code>OutOfMemoryError</code> with no detail message.
23      */

24     public OutOfMemoryError() {
25     super();
26     }
27
28     /**
29      * Constructs an <code>OutOfMemoryError</code> with the specified
30      * detail message.
31      *
32      * @param s the detail message.
33      */

34     public OutOfMemoryError(String JavaDoc s) {
35     super(s);
36     }
37 }
38
Popular Tags